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

Disassembly:
push esi
sub esp, 0xec
mov eax, dword [esp + 0xf4]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0xf8]
mov dword [esp + 0x2c], eax
add eax, 0xc
mov dword [esp], eax
call fcn.0040da70
mov ecx, eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x38], ecx
add eax, 0xc
mov dword [esp], eax
call fcn.0040dab0
mov dword [esp + 0x3c], eax
lea ecx, [esp + 0x38]
lea eax, [esp + 0x3c]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x3000
mov dword [esp + 0xc], 4
call fcn.0040c530
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], edx
lea eax, [esp + 0x40]
mov dword [esp], eax
call fcn.0040b670
test al, 1
jne 0x40d254
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0x18]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.0040b610
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], edx
jmp 0x40d2e1
mov dword [esp + 0x38], 0
lea ecx, [esp + 0x38]
lea eax, [esp + 0x3c]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x3000
mov dword [esp + 0xc], 4
call fcn.0040c530
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.0040bf50
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], edx
mov eax, 1
xor ecx, ecx
cmp dword [esp + 0x48], 0xb
cmove eax, ecx
cmp eax, 0
je 0x40d231
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0xb8], edx
mov dword [esp + 0xbc], ecx
lea eax, [0x5048c0]
mov dword [esp], esi
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
call fcn.0040af60
jmp 0x40d5ab
lea eax, [esp + 0x50]
mov dword [esp], eax
call fcn.0040c030
mov dword [esp + 0x58], eax
mov edx, dword [esp + 0x58]
mov eax, 1
xor ecx, ecx
cmp edx, 0
cmove eax, ecx
cmp eax, 0
jne 0x40d34c
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x38]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.0040c900
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.0040bf50
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], edx
mov eax, 1
xor ecx, ecx
cmp dword [esp + 0x5c], 0xb
cmove eax, ecx
cmp eax, 0
je 0x40d3fe
jmp 0x40d43c
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x58]
mov dword [esp + 0xb4], eax
mov edx, dword [ecx + 0x24]
mov ecx, dword [ecx + 0x28]
mov dword [esp + 0xe4], edx
mov dword [esp + 0xe8], ecx
mov ecx, dword [eax + 0x14]
mov dword [esp + 0xdc], edx
mov dword [esp + 0xe0], ecx
add edx, ecx
mov dword [esp + 0x1c], edx
mov ecx, dword [esp + 0x38]
mov esi, dword [eax + 0xc]
mov dword [esp + 0xcc], ecx
mov dword [esp + 0xd0], esi
add ecx, esi
mov dword [esp + 0x18], ecx
mov eax, dword [eax + 0x10]
mov dword [esp + 0x20], eax
mov dword [esp + 0xc0], edx
mov dword [esp + 0xc4], ecx
mov dword [esp + 0xc8], eax
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], 1
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], eax
call fcn.0040b1b0
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call sub.VCRUNTIME140.dll_memcpy
jmp 0x40d2e1
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x38]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.0040cb90
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.0040bf50
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], edx
mov eax, 1
xor ecx, ecx
cmp dword [esp + 0x64], 0xb
cmove eax, ecx
cmp eax, 0
je 0x40d475
jmp 0x40d495
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x60]
mov dword [esp + 0xac], edx
mov dword [esp + 0xb0], ecx
lea eax, [0x5048b0]
mov dword [esp], esi
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
call fcn.0040af60
jmp 0x40d5ab
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0x18]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.0040b610
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], edx
jmp 0x40d4ce
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x64]
mov ecx, dword [esp + 0x68]
mov dword [esp + 0xa4], edx
mov dword [esp + 0xa8], ecx
lea eax, [0x5048a0]
mov dword [esp], esi
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
call fcn.0040af60
jmp 0x40d5ab
lea eax, [esp + 0x6c]
mov dword [esp], eax
call fcn.0040c030
mov dword [esp + 0x74], eax
mov edx, dword [esp + 0x74]
mov eax, 1
xor ecx, ecx
cmp edx, 0
cmove eax, ecx
cmp eax, 0
jne 0x40d53b
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x38]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.0040d100
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.0040bf50
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], edx
mov eax, 1
xor ecx, ecx
cmp dword [esp + 0x88], 0xb
cmove eax, ecx
cmp eax, 0
je 0x40d55e
jmp 0x40d571
mov eax, dword [esp + 0x74]
mov dword [esp + 0x14], eax
mov dword [esp + 0x98], eax
mov eax, dword [eax + 0x10]
mov dword [esp + 0x78], eax
cmp dword [esp + 0x78], 0
je 0x40d4ce
jmp 0x40d5b7
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x38]
mov dword [eax + 4], ecx
mov dword [eax], 0xb
jmp 0x40d5ab
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x88]
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x90], edx
mov dword [esp + 0x94], ecx
lea eax, [0x504880]
mov dword [esp], esi
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
call fcn.0040af60
mov eax, dword [esp + 0x28]
add esp, 0xec
pop esi
ret
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x38]
mov edx, dword [eax + 0xc]
mov dword [esp + 0xd4], ecx
mov dword [esp + 0xd8], edx
add ecx, edx
mov dword [esp + 0x84], ecx
mov dword [esp], eax
call fcn.0040e460
lea edx, [esp + 0x84]
lea ecx, [esp + 0x78]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.0040c720
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.0040bf50
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], edx
mov eax, 1
xor ecx, ecx
cmp dword [esp + 0x7c], 0xb
cmove eax, ecx
cmp eax, 0
je 0x40d4ce
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x7c]
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x9c], edx
mov dword [esp + 0xa0], ecx
lea eax, [0x504890]
mov dword [esp], esi
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
call fcn.0040af60
jmp 0x40d5ab