Function at 0x403fbe
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov ecx, dword [edi + 0x1c]
push ebx
push esi
mov esi, dword [ebp + 8]
call fcn.00404ace
mov ecx, dword [edi + 0x10]
xor edx, edx
mov dword [ebp - 4], eax
div dword [ecx + 0x3c]
mov eax, dword [ebp - 4]
test edx, edx
jne 0x403fe8
mov dword [ebp - 0x10], eax
jmp 0x403ff7
mov ebx, dword [ecx + 0x3c]
xor edx, edx
div ebx
sub ebx, edx
add ebx, dword [ebp - 4]
mov dword [ebp - 0x10], ebx
movzx edx, word [ecx + 0x14]
mov eax, dword [edi + 0x14]
inc eax
lea eax, [eax + eax*4]
add edx, ecx
mov ecx, dword [edi + 8]
sub ecx, dword [edx + eax*8]
mov eax, dword [ebp - 0x10]
add eax, ecx
push eax
mov dword [esi], eax
call fcn.00408c9a
push dword [esi]
mov ebx, eax
push 0
push ebx
mov dword [ebp - 0x2c], ebx
call fcn.00408ea0
mov eax, dword [edi + 0x10]
movzx edx, word [eax + 0x14]
mov ecx, dword [edi + 4]
lea esi, [edx + eax + 0x18]
mov eax, dword [edi + 0x14]
lea eax, [eax + eax*4]
push dword [esi + eax*8 + 0x14]
mov dword [ebp - 0x18], ecx
push ecx
push ebx
call fcn.00409ba0
mov eax, dword [edi + 0x14]
lea eax, [eax + eax*4]
shl eax, 3
mov edx, dword [eax + esi + 0x14]
mov esi, dword [ebx + 0x3c]
lea ecx, [edx + ebx]
add esi, ebx
mov dword [ebp - 0x28], ecx
movzx ecx, word [esi + 0x14]
lea ecx, [ecx + esi + 0x18]
add eax, ecx
mov ebx, dword [eax + 0x10]
add ebx, edx
mov edx, dword [eax + 8]
add dword [ebp - 0x18], ebx
mov dword [ebp - 8], edx
mov edx, dword [ebp - 0x10]
mov dword [eax + 0x10], edx
mov ebx, dword [esi + 0x38]
mov eax, dword [ebp - 4]
xor edx, edx
div ebx
add esp, 0x1c
test edx, edx
jne 0x404094
mov ebx, dword [ebp - 4]
jmp 0x404099
sub ebx, edx
add ebx, dword [ebp - 4]
mov eax, dword [edi + 0x14]
lea eax, [eax + eax*4]
mov dword [ecx + eax*8 + 8], ebx
mov eax, dword [edi + 0x14]
mov ebx, dword [esi + 0x38]
lea eax, [eax + eax*4]
mov eax, dword [ecx + eax*8 + 8]
mov dword [esi + 0x8c], eax
mov eax, dword [esi + 0x54]
xor edx, edx
mov dword [ebp - 0x14], eax
div ebx
mov eax, dword [ebp - 0x14]
test edx, edx
je 0x4040cb
sub eax, edx
add eax, ebx
and dword [ebp - 4], 0
mov dword [esi + 0x50], eax
movzx eax, word [esi + 6]
test eax, eax
jbe 0x404113
lea eax, [ecx + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
xor edx, edx
div ebx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
test edx, edx
je 0x404100
mov dword [ebp - 0x1c], eax
xor edx, edx
div ebx
mov eax, dword [ebp - 0x1c]
sub eax, edx
add eax, ebx
add dword [esi + 0x50], eax
movzx eax, word [esi + 6]
inc dword [ebp - 4]
add dword [ebp - 0xc], 0x28
cmp dword [ebp - 4], eax
jb 0x4040e0
mov eax, dword [edi + 0x14]
mov edx, dword [esi + 0x28]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*8]
cmp edx, dword [eax + 0xc]
jbe 0x40412f
mov eax, dword [eax + 8]
sub eax, dword [ebp - 8]
add eax, edx
mov dword [esi + 0x28], eax
mov eax, dword [edi + 0x14]
mov edx, dword [esi + 0x2c]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*8]
cmp edx, dword [eax + 0xc]
jbe 0x40414b
mov eax, dword [eax + 8]
sub eax, dword [ebp - 8]
add eax, edx
mov dword [esi + 0x2c], eax
mov eax, dword [edi + 0x14]
mov edx, dword [esi + 0x30]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*8]
cmp edx, dword [eax + 0xc]
jbe 0x404167
mov eax, dword [eax + 8]
sub eax, dword [ebp - 8]
add eax, edx
mov dword [esi + 0x30], eax
mov eax, dword [edi + 0x14]
movzx edx, word [esi + 6]
inc eax
cmp eax, edx
mov dword [ebp - 4], eax
jae 0x404261
lea eax, [eax + eax*4]
lea edx, [ecx + eax*8 + 0xc]
mov dword [ebp - 0x14], edx
mov eax, dword [edx + 8]
test eax, eax
mov dword [ebp - 0x1c], eax
je 0x4041b3
mov edx, dword [edi + 0x10]
mov eax, dword [edi + 0x14]
movzx ebx, word [edx + 0x14]
inc eax
lea eax, [eax + eax*4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x1c]
add ebx, edx
mov edx, dword [ebp - 0xc]
sub eax, dword [ebx + edx*8]
mov edx, dword [ebp - 0x14]
add eax, dword [ebp - 0x10]
mov dword [edx + 8], eax
xor eax, eax
cmp dword [esi + 0x74], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0xc], eax
jbe 0x4041dd
mov edx, dword [edx]
lea eax, [esi + 0x78]
cmp dword [eax], edx
jne 0x4041cf
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x1c], ebx
inc dword [ebp - 0xc]
mov ebx, dword [esi + 0x74]
add eax, 8
cmp dword [ebp - 0xc], ebx
jb 0x4041c5
mov ebx, dword [esi + 0x38]
mov eax, dword [ebp - 8]
xor edx, edx
div ebx
test edx, edx
jne 0x4041f0
mov ebx, dword [ebp - 8]
jmp 0x4041f5
sub ebx, edx
add ebx, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
sub eax, ebx
mov dword [edx], eax
mov ebx, dword [esi + 0x38]
mov dword [ebp - 0x24], eax
mov eax, dword [edi + 0x14]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*8 + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [eax]
xor edx, edx
mov dword [ebp - 0xc], eax
div ebx
test edx, edx
jne 0x404223
mov eax, dword [ebp - 0xc]
jmp 0x404236
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
xor edx, edx
div ebx
mov eax, dword [ebp - 0x20]
sub eax, edx
add eax, ebx
mov edx, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x1c]
add eax, edx
test ebx, ebx
mov edx, dword [ebp - 0x14]
mov dword [edx], eax
je 0x40424b
mov dword [esi + ebx*8 + 0x78], eax
movzx eax, word [esi + 6]
inc dword [ebp - 4]
add edx, 0x28
cmp dword [ebp - 4], eax
mov dword [ebp - 0x14], edx
jb 0x404184
mov ebx, dword [ebp - 0x28]
push ebx
push edi
call fcn.00404457
mov eax, dword [edi + 8]
sub eax, dword [ebp - 0x18]
add eax, dword [edi + 4]
je 0x404288
push eax
mov eax, dword [ebp - 0x10]
push dword [ebp - 0x18]
add ebx, eax
push ebx
call fcn.00409ba0
add esp, 0xc
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp + 8]
mov dword [edi + 4], eax
mov ecx, dword [ecx]
mov dword [edi + 0x10], esi
pop esi
mov dword [edi + 8], ecx
mov dword [edi + 0xc], eax
pop ebx
leave
ret 4