Function at 0x40af10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x6c
push ebx
mov ebx, ecx
push ebp
push esi
mov ecx, dword [ebx + 0x20]
lea eax, [esp + 0x18]
push edi
push eax
push ecx
mov dword [esp + 0x1c], ebx
call dword [0x4dabf0]
mov ecx, ebx
call fcn.004cd020
mov ebp, dword [0x4dabec]
test ah, 4
je 0x40af4a
mov ecx, ebx
call fcn.004cd020
test ah, 8
jne 0x40af56
mov ecx, ebx
call fcn.004cd020
test ah, 8
je 0x40af9f
mov edx, dword [esp + 0x24]
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
sub edx, edi
push edx
mov edx, dword [esp + 0x24]
sub eax, edx
lea ecx, [esp + 0x20]
push eax
push 0
push 0
push ecx
call ebp
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x84]
mov ecx, dword [esp + 0x1c]
sub eax, edx
sub eax, ecx
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], ecx
mov edx, dword [ebx + 0x74]
mov dword [esp + 0x10], 0
test edx, edx
je 0x40afb6
mov dword [esp + 0x10], 1
mov eax, dword [ebx + 0x64]
test eax, eax
je 0x40afc2
add dword [esp + 0x10], 2
mov eax, dword [ebx + 0x6c]
test eax, eax
je 0x40afce
add dword [esp + 0x10], 2
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
mov esi, eax
xor edi, edi
sub esi, ecx
sub esi, 3
test edx, edx
je 0x40b05d
xor edx, edx
sub eax, ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], edx
lea edx, [esi + 1]
mov ecx, ebx
mov edi, esi
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], eax
call fcn.004cd020
test ah, 2
je 0x40b02f
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
sub ecx, edx
push ecx
mov ecx, dword [esp + 0x20]
mov edx, eax
sub eax, esi
sub edx, ecx
sub eax, ecx
push edx
dec eax
push 0
push eax
lea eax, [esp + 0x3c]
push eax
call ebp
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x80]
push ecx
lea eax, [esp + 0x30]
push edx
push eax
call dword [0x4dabcc]
test eax, eax
je 0x40b05d
pop edi
pop esi
pop ebp
mov eax, 0xfffffffb
pop ebx
add esp, 0x6c
ret 8
mov ecx, ebx
call fcn.004cd020
test ah, 2
mov eax, dword [esp + 0x10]
je 0x40b1be
cmp eax, 2
je 0x40b15d
cmp eax, 3
je 0x40b15d
cmp eax, 4
je 0x40b091
cmp eax, 5
jne 0x40b281
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x20]
sub eax, edi
sub ecx, ebx
mov edx, eax
push ecx
mov ecx, dword [esp + 0x20]
sub eax, esi
sub edx, ecx
sub eax, ecx
push edx
dec eax
push 0
push eax
lea eax, [esp + 0x7c]
push eax
call ebp
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
sub ecx, edx
mov edx, eax
lea ebx, [esi + esi]
sub edx, edi
push ecx
mov ecx, dword [esp + 0x20]
sub edx, esi
sub eax, ebx
sub edx, ecx
sub eax, edi
dec edx
sub eax, ecx
push edx
dec eax
push 0
push eax
lea eax, [esp + 0x5c]
push eax
call ebp
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
sub edx, dword [esp + 0x20]
lea ecx, [esi + esi*2]
push edx
mov edx, eax
sub edx, ebx
sub eax, ecx
sub edx, edi
sub eax, edi
mov ebx, edx
mov edx, dword [esp + 0x20]
sub eax, edx
sub ebx, edx
sub eax, 2
dec ebx
push ebx
push 0
push eax
lea eax, [esp + 0x4c]
push eax
call ebp
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
sub ecx, ebx
push ecx
mov edx, eax
lea ecx, [esi + esi*2]
sub edx, ecx
mov ecx, dword [esp + 0x20]
sub edx, edi
sub edx, ecx
sub edx, 2
push edx
lea edx, [esi*4]
sub eax, edx
push 0
sub eax, edi
sub eax, ecx
sub eax, 3
push eax
lea eax, [esp + 0x6c]
push eax
jmp 0x40b27b
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
sub eax, edi
sub ecx, edx
mov edx, eax
push ecx
mov ecx, dword [esp + 0x20]
sub eax, esi
sub edx, ecx
sub eax, ecx
push edx
dec eax
push 0
push eax
lea eax, [esp + 0x5c]
push eax
call ebp
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
sub ecx, edx
mov edx, eax
push ecx
mov ecx, dword [esp + 0x20]
sub edx, edi
sub edx, esi
sub edx, ecx
dec edx
push edx
lea edx, [esi + esi]
sub eax, edx
push 0
sub eax, edi
sub eax, ecx
sub eax, 3
push eax
lea eax, [esp + 0x4c]
push eax
call ebp
jmp 0x40b281
cmp eax, 2
je 0x40b249
cmp eax, 3
je 0x40b249
cmp eax, 4
je 0x40b1da
cmp eax, 5
jne 0x40b281
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
sub ecx, eax
lea ebx, [edi + esi + 1]
push ecx
push ebx
push 0
lea edx, [esp + 0x68]
push edi
push edx
call ebp
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
sub ecx, edx
lea eax, [edi + esi*2 + 1]
push ecx
push eax
push 0
lea edx, [esp + 0x48]
push ebx
push edx
call ebp
mov ecx, dword [esp + 0x28]
lea eax, [edi + esi*2]
lea edx, [esp + 0x4c]
lea ebx, [esi + eax + 2]
mov eax, dword [esp + 0x20]
sub ecx, eax
lea eax, [edi + esi*2 + 1]
push ecx
push ebx
push 0
push eax
push edx
call ebp
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
sub eax, edx
lea ecx, [edi + esi*4 + 3]
push eax
push ecx
push 0
lea edx, [esp + 0x78]
push ebx
push edx
jmp 0x40b27b
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
sub eax, edx
lea ebx, [edi + esi + 1]
push eax
push ebx
push 0
lea ecx, [esp + 0x48]
push edi
push ecx
call ebp
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
sub edx, ecx
lea eax, [edi + esi*2 + 3]
push edx
push eax
push 0
lea ecx, [esp + 0x58]
push ebx
push ecx
call ebp
mov ebx, dword [esp + 0x14]
cmp dword [esp + 0x10], 4
jl 0x40b2bd
mov eax, dword [ebx + 0x6c]
test eax, eax
je 0x40b2bd
mov edi, dword [esp + 0x84]
mov ebp, dword [esp + 0x80]
mov esi, dword [0x4dabcc]
push edi
lea edx, [esp + 0x60]
push ebp
push edx
call esi
test eax, eax
je 0x40b2d1
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x6c
ret 8
mov ebp, dword [esp + 0x80]
mov esi, dword [0x4dabcc]
mov edi, dword [esp + 0x84]
mov eax, dword [ebx + 0x64]
test eax, eax
je 0x40b2f4
push edi
lea eax, [esp + 0x40]
push ebp
push eax
call esi
test eax, eax
je 0x40b2f4
pop edi
pop esi
pop ebp
mov eax, 0xfffffffe
pop ebx
add esp, 0x6c
ret 8
mov eax, dword [ebx + 0x68]
test eax, eax
je 0x40b317
push edi
lea ecx, [esp + 0x50]
push ebp
push ecx
call esi
test eax, eax
je 0x40b317
pop edi
pop esi
pop ebp
mov eax, 0xfffffffd
pop ebx
add esp, 0x6c
ret 8
cmp dword [esp + 0x10], 4
jl 0x40b341
mov eax, dword [ebx + 0x70]
test eax, eax
je 0x40b341
push edi
lea edx, [esp + 0x70]
push ebp
push edx
call esi
test eax, eax
je 0x40b341
pop edi
pop esi
pop ebp
mov eax, 0xfffffffc
pop ebx
add esp, 0x6c
ret 8
mov eax, dword [ebx + 0x16c]
xor esi, esi
test eax, eax
jle 0x40b386
mov eax, dword [ebx + 0x168]
mov eax, dword [eax + esi*4]
mov cl, byte [eax + 0x30]
test cl, cl
je 0x40b36d
mov ecx, dword [eax + 0x2c]
push edi
push ebp
push ecx
call dword [0x4da134]
test eax, eax
jne 0x40b37a
mov eax, dword [ebx + 0x16c]
inc esi
cmp esi, eax
jge 0x40b386
jmp 0x40b34d
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret 8
pop edi
pop esi
pop ebp
mov eax, 0xfffffffa
pop ebx
add esp, 0x6c
ret 8