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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx]
ja 0x40157f
xor edi, edi
mov eax, 0x1c
call fcn.0042a440
jmp fcn.00401560
sub esp, 0x68
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x7c], 0
mov ebx, dword [esp + 0x6c]
mov dword [esp + 0x50], ebx
mov ebx, dword [esp + 0x70]
mov dword [esp + 0x54], ebx
mov ebx, dword [esp + 0x74]
mov dword [esp + 0x58], ebx
mov dword [esp], 0x60df40
call fcn.00424940
mov eax, dword [esp + 4]
mov ebp, dword [esp + 0x50]
mov dword [eax], ebp
mov ebp, dword [esp + 0x54]
mov dword [eax + 4], ebp
mov ebp, dword [esp + 0x58]
mov dword [eax + 8], ebp
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xffffffff
mov dword [esp + 0x3c], eax
mov eax, dword [0x76c474]
xor ebx, ebx
cmp eax, ebx
je 0x4017a8
lea esi, [0x630180]
lea edi, [esp]
cld
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x78]
cmp esi, 0
je 0x4017a1
add esi, 0x28
lea edi, [esp + 8]
cld
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x40], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x14], ecx
call fcn.004a3060
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x84], ebx
cmp ecx, 0
mov dword [esp + 0x80], ecx
je 0x40166c
mov dword [esp + 0x7c], 0
add esp, 0x68
ret
mov dword [esp + 0x2c], eax
mov ebp, dword [eax + 0x1c]
mov dword [esp], ebp
lea esi, [0x640110]
lea edi, [esp + 4]
cld
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea esi, [0x654ba0]
lea edi, [esp + 0xc]
cld
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004a09d0
mov ebx, dword [esp + 0x2c]
mov ebp, dword [ebx + 0x1c]
mov dword [esp], ebp
lea esi, [0x637d50]
lea edi, [esp + 4]
cld
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea esi, [0x62c9a8]
lea edi, [esp + 0xc]
cld
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004a09d0
mov ebx, dword [esp + 0x2c]
mov dword [esp], ebx
mov ebx, dword [esp + 0x78]
mov ebp, dword [ebx + 0x24]
mov dword [esp + 4], ebp
call fcn.004a1d80
xor eax, eax
cmp eax, 1
mov dword [esp + 0x24], eax
jg 0x401799
mov ebx, dword [esp + 0x78]
mov ebp, dword [ebx + 0x30]
mov dword [esp], ebp
mov ebx, dword [esp + 0x2c]
mov dword [esp + 4], ebx
call fcn.004b3bc0
mov ebx, dword [esp + 8]
mov dword [esp + 0x7c], ebx
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x84], edx
cmp ecx, 0
mov dword [esp + 0x80], ecx
jne 0x401722
add esp, 0x68
ret
lea edi, [esp + 0x48]
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea ebx, [esp + 0x48]
cmp ebx, 0
je 0x40179d
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], 1
mov dword [esp + 0x64], 1
mov dword [esp], ecx
mov dword [esp + 4], edx
call fcn.004228c0
mov edx, dword [esp + 0x5c]
lea ebx, [esp + 8]
mov esi, ebx
mov edi, edx
cld
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea esi, [0x648d10]
lea edi, [esp]
cld
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [esp + 8], edx
mov ebx, dword [esp + 0x60]
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x64]
mov dword [esp + 0x10], ebx
call fcn.00431f50
mov eax, dword [esp + 0x24]
inc eax
cmp eax, 1
mov dword [esp + 0x24], eax
jle 0x4016e4
add esp, 0x68
ret
mov dword [ebx], eax
jmp 0x401733
mov dword [esi], eax
jmp 0x40161e
mov dword [esp], 0x61e640
mov dword [esp + 4], 0x5fa720
mov dword [esp + 8], 0x76c474
call fcn.00422420
mov eax, dword [esp + 0xc]
jmp 0x401605