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

Disassembly:
sub esp, 0x64
mov eax, dword [0x4fa5ac]
xor eax, esp
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x6c]
push ebx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x7c]
mov ecx, dword [eax + 0x24]
mov ebx, dword [ecx]
push esi
push edi
mov edi, dword [esp + 0x8c]
push 0
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x10], ebx
call fcn.00438645
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x40b128
inc eax
mov dword [ebx + 4], eax
push ebp
lea ecx, [esp + 0x34]
call fcn.0043866d
lea edx, [esp + 0x10]
push edx
call fcn.0040ada0
add esp, 4
mov ebp, eax
push 0
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], ebp
call fcn.00438645
mov eax, dword [ebx + 4]
test eax, eax
jbe 0x40b160
cmp eax, 0xffffffff
jae 0x40b160
dec eax
mov dword [ebx + 4], eax
mov esi, dword [ebx + 4]
neg esi
sbb esi, esi
not esi
lea ecx, [esp + 0x10]
and esi, ebx
call fcn.0043866d
xor ebx, ebx
cmp esi, ebx
je 0x40b184
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
mov eax, dword [ebp]
mov edx, dword [eax + 0xc]
lea ecx, [esp + 0x54]
push ecx
mov ecx, ebp
call edx
mov eax, dword [ebp]
mov edx, dword [eax + 8]
mov ecx, ebp
call edx
mov byte [esp + 0x10], al
mov al, byte [edi]
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
cmp al, 0x2b
je 0x40b1bf
mov dword [esp + 0x1c], ebx
cmp al, 0x2d
jne 0x40b1c7
mov dword [esp + 0x1c], 1
call fcn.0043aba7
mov eax, dword [eax]
mov cl, byte [eax]
mov byte [esp + 0x16], bl
mov ebx, dword [esp + 0xa0]
push ebx
push 0x65
push edi
mov byte [esp + 0x20], cl
mov byte [esp + 0x21], 0x65
call fcn.0043abd0
movsx edx, byte [esp + 0x20]
push ebx
push edx
push edi
mov esi, eax
call fcn.0043abd0
mov ebp, eax
add esp, 0x18
test ebp, ebp
jne 0x40b20c
mov dword [esp + 0x9c], eax
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x58]
mov eax, edx
cmp ecx, 0x10
jae 0x40b21f
lea eax, [esp + 0x58]
cmp byte [eax], 0x7f
je 0x40b36f
mov eax, edx
cmp ecx, 0x10
jae 0x40b233
lea eax, [esp + 0x58]
cmp byte [eax], 0
jle 0x40b36f
push ebx
push edi
lea ecx, [esp + 0x40]
call fcn.004073b0
test esi, esi
jne 0x40b267
mov eax, dword [esp + 0x9c]
push 0x30
push eax
lea ecx, [esp + 0x40]
call fcn.00409e80
mov ebx, dword [esp + 0x94]
jmp 0x40b29f
test ebp, ebp
jne 0x40b282
mov ecx, dword [esp + 0x94]
push 0x30
push ecx
lea ecx, [esp + 0x40]
call fcn.00409e80
xor ebx, ebx
jmp 0x40b289
mov ebx, dword [esp + 0x94]
mov edx, dword [esp + 0x9c]
push 0x30
push edx
sub esi, edi
push esi
lea ecx, [esp + 0x44]
call fcn.00409f30
push 0x30
test ebp, ebp
jne 0x40b2b1
push ebx
lea ecx, [esp + 0x40]
call fcn.00409e80
jmp 0x40b2e2
mov eax, dword [esp + 0x9c]
mov esi, ebp
sub esi, edi
push eax
lea ecx, [esi + 1]
push ecx
lea ecx, [esp + 0x44]
call fcn.00409f30
push 0x30
push ebx
push esi
lea ecx, [esp + 0x44]
call fcn.00409f30
mov dword [esp + 0x98], 0
mov edi, dword [esp + 0x58]
mov ebx, 0x10
mov dword [esp + 0x94], 0
cmp dword [esp + 0x6c], ebx
jae 0x40b300
lea edi, [esp + 0x58]
mov eax, dword [esp + 0x3c]
cmp dword [esp + 0x50], ebx
jae 0x40b30e
lea eax, [esp + 0x3c]
lea edx, [esp + 0x14]
push edx
push eax
call fcn.0043ae40
mov esi, eax
mov al, byte [edi]
add esp, 8
cmp al, 0x7f
je 0x40b352
test al, al
jle 0x40b352
mov ecx, esi
sub ecx, dword [esp + 0x1c]
movsx eax, al
cmp eax, ecx
jae 0x40b352
push 0
sub esi, eax
push 1
push esi
lea ecx, [esp + 0x44]
call fcn.00409f30
cmp byte [edi + 1], 0
jle 0x40b34c
inc edi
mov al, byte [edi]
cmp al, 0x7f
jne 0x40b324
mov edi, dword [esp + 0x3c]
cmp dword [esp + 0x50], ebx
jae 0x40b360
lea edi, [esp + 0x3c]
mov ebx, dword [esp + 0x4c]
mov dword [esp + 0x9c], 0
mov edx, dword [esp + 0x94]
mov eax, dword [esp + 0x98]
add eax, edx
add eax, dword [esp + 0x9c]
mov edx, dword [esp + 0x2c]
mov ecx, dword [edx + 0x18]
add eax, ebx
test ecx, ecx
jle 0x40b39f
cmp ecx, eax
jbe 0x40b39f
sub ecx, eax
mov dword [esp + 0x18], ecx
jmp 0x40b3a7
mov dword [esp + 0x18], 0
mov eax, dword [edx + 0x10]
mov esi, dword [esp + 0x78]
and eax, 0x1c0
cmp eax, 0x40
je 0x40b483
cmp eax, 0x100
je 0x40b400
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x8c]
mov eax, dword [esp + 0x84]
push ecx
mov ecx, dword [esp + 0x84]
push edx
push eax
push ecx
lea edx, [esp + 0x2c]
push edx
push esi
call fcn.00409c90
mov ecx, dword [eax]
mov dword [esp + 0x98], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x9c], edx
jmp 0x40b478
cmp dword [esp + 0x1c], 0
jbe 0x40b43d
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x80]
push 1
push edi
push eax
push ecx
lea edx, [esp + 0x2c]
push edx
push esi
call fcn.00409c20
mov ecx, dword [eax]
mov dword [esp + 0x98], ecx
mov edx, dword [eax + 4]
add esp, 0x18
inc edi
mov dword [esp + 0x84], edx
dec ebx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0x84]
push eax
mov eax, dword [esp + 0x84]
push ecx
push edx
push eax
lea ecx, [esp + 0x2c]
push ecx
push esi
call fcn.00409c90
mov edx, dword [eax]
mov dword [esp + 0x98], edx
mov eax, dword [eax + 4]
mov dword [esp + 0x9c], eax
mov dword [esp + 0x30], 0
add esp, 0x18
movsx ecx, byte [esp + 0x14]
push ebx
push ecx
push edi
call fcn.0043abd0
add esp, 0xc
test eax, eax
je 0x40b584
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x84]
sub eax, edi
inc eax
push edx
mov edx, dword [esp + 0x84]
mov ebp, eax
lea eax, [ebp - 1]
push eax
push edi
push ecx
push edx
lea eax, [esp + 0x30]
push eax
push esi
call fcn.00409d00
mov ecx, dword [eax]
mov dword [esp + 0x9c], ecx
mov edx, dword [eax + 4]
mov ecx, dword [esp + 0xb0]
push ecx
mov dword [esp + 0xa4], edx
mov edx, dword [eax + 4]
mov eax, dword [eax]
push 0x30
push edx
push eax
lea ecx, [esp + 0x48]
push ecx
push esi
call fcn.00409c90
mov edx, dword [eax]
mov ecx, dword [esp + 0x58]
mov dword [esp + 0xb4], edx
mov eax, dword [eax + 4]
mov dword [esp + 0xb8], eax
mov edx, dword [ecx]
mov eax, dword [edx + 4]
add esp, 0x34
call eax
mov edx, dword [esp + 0x84]
push 1
mov byte [esp + 0x28], al
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x84]
push ecx
push edx
push eax
lea ecx, [esp + 0x2c]
push ecx
push esi
call fcn.00409c90
mov edx, dword [eax]
mov dword [esp + 0x98], edx
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0xb0]
push edx
mov dword [esp + 0xa0], ecx
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push 0x30
push ecx
push edx
lea eax, [esp + 0x4c]
push eax
push esi
call fcn.00409c90
mov ecx, dword [eax]
mov dword [esp + 0xb0], ecx
mov edx, dword [eax + 4]
add esp, 0x30
add edi, ebp
mov dword [esp + 0x84], edx
sub ebx, ebp
push ebx
push 0x65
push edi
call fcn.0043abd0
add esp, 0xc
test eax, eax
je 0x40b655
mov edx, dword [esp + 0x84]
sub eax, edi
inc eax
mov ebp, eax
mov eax, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x84]
lea ecx, [ebp - 1]
push ecx
push edi
push edx
push eax
lea ecx, [esp + 0x38]
push ecx
push esi
call fcn.00409d00
mov edx, dword [eax]
mov dword [esp + 0x9c], edx
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0xb8]
push edx
mov dword [esp + 0xa4], ecx
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push 0x30
push ecx
push edx
lea eax, [esp + 0x50]
push eax
push esi
call fcn.00409c90
mov ecx, dword [eax]
mov dword [esp + 0xb4], ecx
mov ecx, dword [esp + 0x60]
mov edx, dword [eax + 4]
add esp, 0x34
test byte [ecx + 0x10], 4
mov dword [esp + 0x84], edx
mov dword [esp + 0x9c], 0
mov ecx, 0x4a6978
jne 0x40b626
mov ecx, 0x4a6974
mov edx, dword [eax + 4]
mov eax, dword [eax]
push 1
push ecx
push edx
push eax
lea ecx, [esp + 0x34]
push ecx
push esi
call fcn.00409c20
mov edx, dword [eax]
mov dword [esp + 0x98], edx
mov eax, dword [eax + 4]
add esp, 0x18
add edi, ebp
mov dword [esp + 0x84], eax
sub ebx, ebp
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x84]
mov eax, dword [esp + 0x80]
push ecx
push ebx
push edi
push edx
push eax
lea ecx, [esp + 0x38]
push ecx
push esi
call fcn.00409d00
mov edx, dword [eax]
mov dword [esp + 0x9c], edx
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0xb8]
push edx
mov dword [esp + 0xa4], ecx
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push 0x30
push ecx
push edx
lea eax, [esp + 0x50]
push eax
push esi
call fcn.00409c90
mov ecx, dword [eax]
mov edx, dword [esp + 0x60]
mov edi, dword [esp + 0x64]
mov dword [esp + 0xb4], ecx
mov eax, dword [eax + 4]
xor ebx, ebx
mov dword [edx + 0x18], ebx
mov edx, dword [esp + 0x4c]
push edx
mov edx, dword [esp + 0xc4]
push edx
push eax
push ecx
push edi
push esi
mov dword [esp + 0xd0], eax
call fcn.00409c90
add esp, 0x4c
mov esi, 0x10
pop ebp
cmp dword [esp + 0x4c], esi
jb 0x40b6f8
mov eax, dword [esp + 0x38]
push eax
call fcn.004390ba
add esp, 4
mov dword [esp + 0x4c], 0xf
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], 0
cmp dword [esp + 0x68], esi
jb 0x40b71c
mov ecx, dword [esp + 0x54]
push ecx
call fcn.004390ba
add esp, 4
mov ecx, dword [esp + 0x6c]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00439589
add esp, 0x64
ret