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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84
mov eax, dword [0x47bbb0]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
test edi, edi
je 0x40bd2b
push dword [esp + 0x1c]
push edi
push dword [edi + 4]
push dword [edi]
call fcn.00406600
mov eax, dword [edi]
add esp, 0x10
mov dword [edi + 4], eax
cmp dword [esi + 0x10], 0
je 0x40bd2b
xor eax, eax
mov dword [esp + 0x20], 0
push 0xffffffffffffffff
push eax
push esi
lea ecx, [esp + 0x38]
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], 0
mov word [esp + 0x38], ax
call fcn.00406080
xor eax, eax
mov dword [esp + 0x58], 7
mov dword [esp + 0x54], 0
mov word [esp + 0x44], ax
nop
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x30]
call fcn.0040bd50
sub esp, 8
mov edx, esp
cmp dword [eax + 0x14], 8
jb 0x40b9dd
mov ecx, dword [eax]
jmp 0x40b9df
mov ecx, eax
mov dword [edx], ecx
sub esp, 8
mov eax, dword [eax + 0x10]
mov ecx, esp
mov dword [edx + 4], eax
lea eax, [esp + 0x3c]
cmp dword [esp + 0x50], 8
cmovae eax, dword [esp + 0x3c]
mov dword [ecx], eax
mov eax, dword [esp + 0x4c]
mov dword [ecx + 4], eax
call fcn.0040b6b0
add esp, 0x10
test al, al
mov eax, dword [esp + 0x70]
sete bl
cmp eax, 8
jb 0x40ba28
inc eax
lea ecx, [esp + 0x5c]
push eax
push dword [esp + 0x60]
call fcn.004048f0
lea eax, [esp + 0x5c]
lea ecx, [esp + 0x2c]
push eax
call fcn.0040be90
test bl, bl
je 0x40bb22
mov esi, eax
lea eax, [esp + 0x44]
cmp eax, esi
je 0x40ba7f
mov ecx, dword [esp + 0x58]
cmp ecx, 8
jb 0x40ba5e
inc ecx
push ecx
push dword [esp + 0x48]
mov ecx, eax
call fcn.004048f0
xor eax, eax
mov dword [esp + 0x58], 7
push esi
lea ecx, [esp + 0x48]
mov dword [esp + 0x58], 0
mov word [esp + 0x48], ax
call fcn.00404730
mov eax, dword [esp + 0x70]
cmp eax, 8
jb 0x40ba97
inc eax
lea ecx, [esp + 0x5c]
push eax
push dword [esp + 0x60]
call fcn.004048f0
lea ecx, [esp + 0x44]
call fcn.0040b820
test al, al
jne 0x40bab2
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x24]
call fcn.00407eb0
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x30]
call fcn.0040bd50
mov esi, eax
lea eax, [esp + 0x2c]
cmp eax, esi
je 0x40bb01
mov ecx, dword [esp + 0x40]
cmp ecx, 8
jb 0x40bae0
inc ecx
push ecx
push dword [esp + 0x30]
mov ecx, eax
call fcn.004048f0
xor eax, eax
mov dword [esp + 0x40], 7
push esi
lea ecx, [esp + 0x30]
mov dword [esp + 0x40], 0
mov word [esp + 0x30], ax
call fcn.00404730
mov eax, dword [esp + 0x70]
cmp eax, 8
jb 0x40b9c0
inc eax
lea ecx, [esp + 0x5c]
push eax
push dword [esp + 0x60]
call fcn.004048f0
jmp 0x40b9c0
push eax
lea ecx, [esp + 0x48]
call fcn.00408b60
mov eax, dword [esp + 0x70]
cmp eax, 8
jb 0x40bb44
inc eax
lea ecx, [esp + 0x5c]
push eax
push dword [esp + 0x60]
call fcn.004048f0
mov ecx, dword [esp + 0x54]
test ecx, ecx
je 0x40bb90
cmp dword [esp + 0x58], 8
lea eax, [esp + 0x44]
push 1
cmovae eax, dword [esp + 0x48]
push 0x475278
push ecx
push eax
call fcn.0040c490
add esp, 0x10
test eax, eax
je 0x40bb90
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x30]
call fcn.0040be90
push eax
lea ecx, [esp + 0x24]
call fcn.00407eb0
lea ecx, [esp + 0x5c]
call fcn.00404640
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x30]
call fcn.0040bd50
cmp dword [esp + 0x88], 8
lea eax, [esp + 0x74]
cmovae eax, dword [esp + 0x74]
cmp dword [esp + 0x84], 2
jb 0x40bc16
cmp word [eax + 2], 0x3a
jne 0x40bc16
movzx eax, word [eax]
cmp eax, 0x41
jb 0x40bbcd
cmp eax, 0x5a
jbe 0x40bbd7
cmp eax, 0x61
jb 0x40bc16
cmp eax, 0x7a
ja 0x40bc16
xor eax, eax
mov dword [esp + 0x70], 7
push 2
push eax
mov word [esp + 0x64], ax
lea ecx, [esp + 0x64]
lea eax, [esp + 0x7c]
mov dword [esp + 0x74], 0
push eax
call fcn.00406080
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x24]
call fcn.00405b10
lea ecx, [esp + 0x5c]
call fcn.00404640
mov byte [esp + 0x1c], 0
lea ecx, [esp + 0x10]
push dword [esp + 0x1c]
mov dword [esp + 0x14], 0
push dword [esp + 0x24]
mov dword [esp + 0x1c], 0
push dword [esp + 0x2c]
mov dword [esp + 0x24], 0
call fcn.0040c5f0
lea eax, [esp + 0x10]
cmp edi, eax
je 0x40bc83
mov ecx, edi
call fcn.00407f60
mov eax, dword [esp + 0x10]
mov dword [edi], eax
mov eax, dword [esp + 0x14]
mov dword [edi + 4], eax
mov eax, dword [esp + 0x18]
mov dword [edi + 8], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
lea ecx, [esp + 0x10]
call fcn.00407f60
mov eax, dword [esp + 0x88]
cmp eax, 8
jb 0x40bca7
inc eax
lea ecx, [esp + 0x74]
push eax
push dword [esp + 0x78]
call fcn.004048f0
xor eax, eax
mov dword [esp + 0x88], 7
mov word [esp + 0x74], ax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x84], 0
cmp eax, 8
jb 0x40bcdc
inc eax
lea ecx, [esp + 0x44]
push eax
push dword [esp + 0x48]
call fcn.004048f0
xor eax, eax
mov dword [esp + 0x58], 7
mov word [esp + 0x44], ax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x54], 0
cmp eax, 8
jb 0x40bd0b
inc eax
lea ecx, [esp + 0x2c]
push eax
push dword [esp + 0x30]
call fcn.004048f0
xor eax, eax
mov dword [esp + 0x40], 7
lea ecx, [esp + 0x20]
mov dword [esp + 0x3c], 0
mov word [esp + 0x2c], ax
call fcn.00407f60
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0043834d
mov esp, ebp
pop ebp
ret 4