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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4afb8c
sub esp, 0x6c
mov ebx, dword [esp + 0x70]
mov ebp, dword [ebx]
mov esi, ebp
movzx edi, word [esi + 0x14]
lea ebp, [edi + ebp + 0x18]
test byte [ebp], al
movzx ecx, word [esi + 6]
cmp ecx, 0xffff
ja 0x4afb81
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x2c], ecx
mov edx, dword [esp + 0x7c]
xor eax, eax
jmp 0x4af84d
inc eax
cmp eax, ecx
jge 0x4afb62
jae 0x4afb7c
mov dword [esp + 0x1c], eax
lea esi, [eax + eax*4]
mov dword [esp + 0x28], esi
lea edi, [ebp + esi*8 + 0x10]
mov dword [esp + 0x38], edi
mov edi, dword [edi]
test edi, edi
jne 0x4af93a
mov edi, dword [edx + 0x38]
test edi, edi
je 0x4af84c
mov dword [esp + 0x24], edi
lea eax, [ebp + esi*8 + 0xc]
mov dword [esp + 0x38], eax
mov ecx, dword [eax]
add ecx, dword [ebx + 4]
mov dword [esp], ecx
mov dword [esp + 4], edi
mov dword [esp + 8], 0x1000
mov dword [esp + 0xc], 4
call fcn.0048bce0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
test eax, eax
jne 0x4afa5b
mov edx, dword [esp + 0x38]
mov edx, dword [edx]
mov ebx, dword [esp + 0x70]
add edx, dword [ebx + 4]
nop
mov ebp, dword [esp + 0x28]
mov esi, dword [esp + 0x3c]
lea ebp, [esi + ebp*8 + 8]
mov dword [ebp], edx
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
nop
nop
mov dword [esp + 0x60], edx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], edx
mov edx, dword [esp + 0x64]
mov ebp, dword [esp + 0x60]
test edx, edx
je 0x4af927
mov dword [esp], ebp
mov dword [esp + 4], edx
call fcn.00453290
mov ebx, dword [esp + 0x70]
mov esi, dword [esp + 0x3c]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x7c]
mov ebp, esi
jmp 0x4af84c
lea edx, [ebp + esi*8 + 0x14]
mov ecx, dword [edx]
add ecx, edi
mov eax, dword [esp + 0x78]
cmp eax, ecx
jb 0x4afb29
mov dword [esp + 0x34], edx
lea eax, [ebp + esi*8 + 0xc]
mov dword [esp + 0x30], eax
mov ecx, dword [eax]
add ecx, dword [ebx + 4]
mov dword [esp], ecx
mov dword [esp + 4], edi
mov dword [esp + 8], 0x1000
mov dword [esp + 0xc], 4
call fcn.0048bce0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test ecx, ecx
jne 0x4afac2
nop
mov edx, dword [esp + 0x30]
mov edx, dword [edx]
mov ebx, dword [esp + 0x70]
add edx, dword [ebx + 4]
mov ebp, dword [esp + 0x34]
mov ebp, dword [ebp]
mov esi, dword [esp + 0x38]
mov esi, dword [esi]
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
nop
nop
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
mov edx, dword [esp + 0x74]
add ebp, edx
nop
nop
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], esi
mov ebp, dword [esp + 0x54]
mov esi, dword [esp + 0x48]
mov edi, dword [esp + 0x58]
mov ecx, edx
mov edx, dword [esp + 0x4c]
cmp edx, edi
jg 0x4afa18
mov edi, edx
cmp esi, ebp
je 0x4afa3c
mov dword [esp + 0x20], eax
mov dword [esp], esi
mov dword [esp + 4], ebp
mov dword [esp + 8], edi
call fcn.00453460
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x74]
mov ebx, dword [esp + 0x70]
mov edx, dword [esp + 0x28]
mov ebp, dword [esp + 0x3c]
lea edx, [ebp + edx*8 + 8]
mov dword [edx], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x7c]
jmp 0x4af84c
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
test ecx, ecx
je 0x4afa72
mov ecx, dword [ecx + 4]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], edx
lea eax, [0x500462]
mov dword [esp], eax
mov dword [esp + 4], 0x1c
lea eax, [esp + 0x40]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.0047af60
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], ecx
add esp, 0x6c
ret
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
test edx, edx
je 0x4afad9
mov edx, dword [edx + 4]
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], ebx
lea eax, [0x5017d6]
mov dword [esp], eax
mov dword [esp + 4], 0x21
lea eax, [esp + 0x40]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.0047af60
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], ecx
add esp, 0x6c
ret
lea eax, [0x4e9380]
mov dword [esp], eax
call fcn.0040ae80
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x12
lea ecx, [0x4fcc28]
mov dword [eax], ecx
lea ecx, [0x51e26c]
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], eax
add esp, 0x6c
ret
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
add esp, 0x6c
ret
call fcn.00452bc0
mov edx, 0xffff
call fcn.00452be0
nop
call fcn.00451710
jmp fcn.004af800