Function at 0x4048c4
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffbec
mov ebx, eax
movzx eax, word [ebx + 6]
mov edx, dword [ebx]
lea esi, [edx + eax]
movzx eax, word [ebx + 4]
cmp eax, 0xfa00
jne 0x40498f
mov di, 4
movzx eax, word [ebx + 4]
movzx edx, word [ebx + 6]
mov ecx, edx
add ecx, 0x2e
cmp eax, ecx
jl 0x404910
movzx ecx, word [esi + 0x1c]
add edx, ecx
movzx ecx, word [esi + 0x1e]
add edx, ecx
add edx, 0x2e
cmp eax, edx
jge 0x40498f
mov edx, dword [ebx]
lea eax, [edx + eax + 1]
movzx ecx, di
lea edx, [esp + 0xc]
call fcn.00402464
movzx ecx, word [ebx + 4]
movzx edx, word [ebx + 6]
sub ecx, edx
mov eax, dword [ebx]
lea edx, [eax + edx]
xchg edx, eax
call fcn.00402464
lea edx, [esp + 0x10]
push edx
movzx edx, word [ebx + 4]
mov ax, word [ebx + 6]
movzx ecx, ax
sub edx, ecx
mov ecx, dword [ebx]
lea edx, [ecx + edx]
mov ecx, eax
mov eax, dword [esp + 0x10]
call fcn.00404408
call fcn.00402b30
cmp dword [eax + 8], 0
jne 0x404977
movzx eax, word [esp + 0x10]
movzx edx, word [ebx + 6]
add eax, edx
cmp eax, 0x2e
jge 0x404981
mov eax, 1
jmp 0x404b80
xor eax, eax
mov word [ebx + 6], ax
movzx eax, ax
mov edx, dword [ebx]
lea esi, [edx + eax]
movzx eax, word [ebx + 6]
add eax, 4
movzx edx, word [ebx + 4]
cmp eax, edx
jg 0x4049be
mov eax, esi
mov ecx, 4
mov edx, dword [0x4091ac]
call fcn.00403574
test eax, eax
jne 0x4049be
mov eax, 1
jmp 0x404b80
movzx ebp, word [ebx + 4]
movzx edi, word [ebx + 6]
mov eax, edi
add eax, 0x2e
cmp ebp, eax
jl 0x4049f7
movzx eax, word [esi + 0x1c]
add edi, eax
movzx eax, word [esi + 0x1e]
add edi, eax
add edi, 0x2e
cmp ebp, edi
jl 0x4049f7
mov edx, 0x404b8c
mov eax, esi
mov ecx, 4
call fcn.00403574
test eax, eax
je 0x404a01
mov eax, 1
jmp 0x404b80
mov eax, dword [esi + 0x18]
mov dword [ebx + 0x10], eax
xor eax, eax
mov dword [ebx + 0x18], eax
mov eax, dword [esi + 0x14]
mov dword [ebx + 0x14], eax
xor eax, eax
mov dword [ebx + 0x1c], eax
cmp byte [esi + 5], 0
jne 0x404a2b
xor eax, eax
mov al, byte [esi + 0x26]
mov word [ebx + 0x82e], ax
jmp 0x404a34
mov word [ebx + 0x82e], 0
mov eax, dword [esi + 0xc]
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x20], eax
mov ax, word [esi + 8]
mov word [ebx + 0x830], ax
xor edx, edx
mov eax, dword [esi + 0x2a]
call fcn.004039c4
fistp qword [ebx + 0x24]
wait
mov edx, esi
add edx, 0x2e
movzx eax, word [esi + 0x1c]
add edx, eax
movzx ecx, word [esi + 0x1e]
mov eax, ebx
call fcn.00404724
mov dword [esp], eax
mov ax, word [esi + 0xa]
mov word [ebx + 0x82c], ax
mov di, word [ebx + 6]
add di, word [esi + 0x1c]
add di, 0x2e
movzx ebp, di
mov eax, dword [ebx]
mov dl, byte [eax + ebp]
mov byte [esp + 8], dl
mov byte [eax + ebp], 0
movzx eax, word [ebx + 6]
mov edx, dword [ebx]
lea edx, [edx + eax + 0x2e]
lea eax, [esp + 0x12]
mov ecx, 0x3ff
call fcn.004035e4
test byte [esi + 9], 8
je 0x404ae3
lea eax, [ebx + 0x2c]
add eax, 0x7fe
sub eax, 2
push eax
lea eax, [esp + 0x16]
call fcn.004035cc
mov edx, eax
lea eax, [esp + 0x16]
add edx, eax
inc edx
lea ecx, [ebx + 0x2c]
lea eax, [esp + 0x16]
call fcn.00403e9c
jmp 0x404b51
cmp dword [esp], 0xffffffff
je 0x404b1d
mov dword [esp + 4], 0xffffffff
lea eax, [esp + 0x12]
call fcn.004035cc
mov edx, eax
lea ecx, [esp + 4]
lea eax, [esp + 0x12]
call fcn.004044c0
not dword [esp + 4]
mov eax, dword [esp]
cmp eax, dword [esp + 4]
je 0x404b1d
mov dword [esp], 0xffffffff
cmp dword [esp], 0xffffffff
jne 0x404b51
cmp byte [esi + 5], 0xb
je 0x404b38
lea eax, [esp + 0x12]
push eax
lea eax, [esp + 0x16]
push eax
call sub.user32.dll_OemToCharA
push 0x3ff
lea eax, [ebx + 0x2c]
push eax
push 0xffffffffffffffff
lea eax, [esp + 0x1e]
push eax
push 0
push 0
call sub.kernel32.dll_MultiByteToWideChar
mov eax, dword [ebx]
mov dl, byte [esp + 8]
mov byte [eax + ebp], dl
lea eax, [ebx + 0x2c]
call fcn.00404858
movzx eax, word [esi + 0x1c]
movzx edx, word [esi + 0x1e]
add eax, edx
add eax, 0x2e
test eax, eax
jg 0x404b7a
mov eax, 0xfffffffe
jmp 0x404b80
add word [ebx + 6], ax
xor eax, eax
add esp, 0x414
pop ebp
pop edi
pop esi
pop ebx
ret