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

Disassembly:
push ebx
push edi
push esi
sub esp, 0x68
mov eax, dword [esp + 0x8c]
mov eax, dword [esp + 0x88]
mov eax, dword [esp + 0x84]
mov eax, dword [esp + 0x80]
mov eax, dword [esp + 0x7c]
mov eax, dword [esp + 0x78]
mov dword [esp], 0x104
mov dword [esp + 4], 2
call fcn.00453e87
mov dword [esp + 0x34], eax
lea eax, [0x46633a]
mov dword [esp], 0x7328f505
mov dword [esp + 4], eax
call fcn.0044b890
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x78]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], 0x104
call eax
sub esp, 0xc
mov dword [esp], 0x1000
mov dword [esp + 4], 1
call fcn.00453e87
mov dword [esp + 0x30], eax
mov dword [esp], 0x1000
mov dword [esp + 4], 1
call fcn.00453e87
mov dword [esp + 0x2c], eax
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x34]
lea esi, [esp + 0x44]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], esi
call fcn.0040b2d0
mov dword [esp + 0x28], 0
jmp 0x40bb52
mov eax, dword [esp + 0x28]
cmp eax, dword [esp + 0x44]
setb al
test al, 1
jne 0x40bb72
jmp 0x40bb63
jmp 0x40bb65
mov dword [esp + 0x18], 2
jmp 0x40bcbf
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
shl ecx, 4
add eax, ecx
mov ecx, dword [eax]
mov dword [esp + 0x58], ecx
mov ecx, dword [eax + 4]
mov dword [esp + 0x5c], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x60], ecx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x60]
cmp eax, dword [esp + 0x88]
seta al
test al, 1
jne 0x40bbae
jmp 0x40bbbb
mov dword [esp + 0x18], 4
jmp 0x40bc7d
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0
mov eax, dword [esp + 0x5c]
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x38]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.0040b0c0
mov dword [esp], 0x104
mov dword [esp + 4], 2
call fcn.00453e87
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x24]
mov dword [esp], ecx
mov dword [esp + 4], eax
call dword [str.en_nz]
sub esp, 8
mov eax, dword [esp + 0x24]
lea ecx, [0x4660f0]
mov dword [esp], eax
mov dword [esp + 4], ecx
call dword [str.en_nz]
sub esp, 8
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x24]
mov dword [esp], ecx
mov dword [esp + 4], eax
call dword [str.en_nz]
sub esp, 8
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0x8c]
mov dword [esp], esi
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
call fcn.0042e130
mov dword [esp + 0x18], 0
jmp 0x40bc7d
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40bc91
jmp 0x40bc87
sub eax, 4
je 0x40bc93
jmp 0x40be9c
jmp 0x40bc93
jmp 0x40bc95
mov eax, dword [esp + 0x28]
mov ecx, eax
xor ecx, 0xffffffff
or ecx, 0xfffffffe
mov edx, eax
and edx, 1
xor edx, 0xffffffff
xor ecx, 0xffffffff
xor edx, 0xffffffff
or ecx, edx
or eax, 1
add ecx, eax
mov dword [esp + 0x28], ecx
jmp 0x40bb50
jmp 0x40bcc1
cmp dword [esp + 0x84], 0
setle al
test al, 1
jne 0x40bcd2
jmp 0x40bcf7
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call fcn.004542d5
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call fcn.004542d5
mov dword [esp + 0x18], 1
jmp 0x40be93
jmp 0x40bcf9
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x34]
lea edx, [0x466136]
lea esi, [esp + 0x40]
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov dword [esp + 0xc], esi
call fcn.0040b2d0
mov dword [esp + 0x20], 0
jmp 0x40bd29
mov eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x40]
jb 0x40bd40
mov dword [esp + 0x18], 5
jmp 0x40be73
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
shl ecx, 4
add eax, ecx
mov ecx, dword [eax]
mov dword [esp + 0x48], ecx
mov ecx, dword [eax + 4]
mov dword [esp + 0x4c], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x50], ecx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x54], eax
cmp dword [esp + 0x54], 0
jne 0x40bd7c
mov dword [esp + 0x18], 7
jmp 0x40be49
mov dword [esp], 0x104
mov dword [esp + 4], 2
call fcn.00453e87
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x1c]
mov dword [esp], ecx
mov dword [esp + 4], eax
call dword [str.en_nz]
sub esp, 8
mov eax, dword [esp + 0x1c]
lea ecx, [0x4660f0]
mov dword [esp], eax
mov dword [esp + 4], ecx
call dword [str.en_nz]
sub esp, 8
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
call fcn.0040ba50
mov ecx, dword [esp + 0x1c]
mov dword [esp], ecx
mov dword [esp + 4], eax
call dword [str.en_nz]
sub esp, 8
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x84]
sub edx, 0x37ad67cf
sub edx, 1
add edx, 0x37ad67cf
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x7c]
mov ebx, dword [esp + 0x4c]
mov dword [esp], ebx
mov dword [esp + 4], edi
mov dword [esp + 8], esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
call fcn.0040ba70
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call fcn.004542d5
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40be5a
jmp 0x40be53
sub eax, 7
je 0x40be5c
jmp 0x40be9a
jmp 0x40be5c
mov eax, dword [esp + 0x20]
mov ecx, eax
and ecx, 1
or eax, 1
add ecx, eax
mov dword [esp + 0x20], ecx
jmp 0x40bd29
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call fcn.004542d5
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call fcn.004542d5
mov dword [esp + 0x18], 0
add esp, 0x68
pop esi
pop edi
pop ebx
ret
jmp 0x40be9e
jmp 0x40be9e
int3