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

Disassembly:
sub esp, 0xf4
mov ecx, 0xc
mov dword [esp + 0xc], esi
mov esi, 0x4cc320
mov dword [esp + 0x10], edi
lea edi, [esp + 0xc4]
mov dword [esp + 4], ebx
mov dword [esp + 8], ebp
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x110]
mov ecx, dword [esp + 0x114]
mov dword [esp + 0xec], eax
xor ebx, ebx
mov edi, dword [esp + 0x118]
mov dword [esp + 0xf0], ecx
push edi
lea eax, [esp + 0xc8]
call fcn.00410fbc
test al, al
je 0x40f852
cmp ebx, 3
jne 0x40f33f
cmp byte [esp + 0xd9], 0
jne 0x40f33f
cmp dword [esp + 0x110], 0
sete dl
mov ecx, 0x40f870
mov edi, 0x4cc290
push edx
lea esi, [esp + 0xf8]
mov eax, 0x1e7
push ecx
push esi
push edi
push 0x37
call fcn.00411320
jmp 0x40f852
mov edx, dword [esp + 0xc4]
cmp edx, 0x7fffffff
jne 0x40f3e7
mov ecx, dword [esp + 0x108]
mov edx, dword [esp + 0x10c]
mov dword [esp + 0xac], ecx
mov ecx, dword [esp + 0x100]
mov dword [esp + 0xb0], edx
mov edx, dword [esp + 0x104]
mov dword [esp + 0x9c], ecx
mov ecx, dword [esp + 0xf8]
mov dword [esp + 0xa0], edx
mov edx, dword [esp + 0xfc]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], edx
push ebx
push dword [esp + 0xb4]
push dword [esp + 0xb4]
push dword [esp + 0xac]
push dword [esp + 0xac]
push dword [esp + 0x7c]
push dword [esp + 0x7c]
call fcn.004120f8
mov esi, eax
test eax, eax
jns 0x40f3da
or byte [esp + 0xdb], 1
neg esi
mov dword [esp + 0xc4], esi
inc ebx
jmp 0x40f47f
test edx, edx
jns 0x40f47f
mov ecx, dword [esp + 0x108]
mov ebp, edx
neg ebp
mov dword [esp + 0xa4], ecx
mov ecx, dword [esp + 0x10c]
mov dword [esp + 0xa8], ecx
mov ecx, dword [esp + 0x100]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x104]
lea edx, [ebp - 1]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0xf8]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0xfc]
mov dword [esp + 0x48], ecx
push edx
push dword [esp + 0xac]
push dword [esp + 0xac]
push dword [esp + 0x4c]
push dword [esp + 0x4c]
push dword [esp + 0x5c]
push dword [esp + 0x5c]
call fcn.004120f8
mov esi, eax
cmp ebx, ebp
jae 0x40f46a
mov ebx, ebp
test esi, esi
jns 0x40f478
or byte [esp + 0xdb], 1
neg esi
mov dword [esp + 0xc4], esi
mov ecx, dword [esp + 0xc8]
cmp ecx, 0x7fffffff
jne 0x40f512
mov edx, dword [esp + 0x108]
mov ecx, dword [esp + 0x10c]
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x100]
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x104]
mov dword [esp + 0x54], edx
mov edx, dword [esp + 0xf8]
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0xfc]
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], ecx
push ebx
push dword [esp + 0x54]
push dword [esp + 0x54]
push dword [esp + 0x64]
push dword [esp + 0x64]
push dword [esp + 0x74]
push dword [esp + 0x74]
call fcn.00412450
mov esi, eax
test eax, eax
js 0x40f501
mov dword [esp + 0xc8], esi
jmp 0x40f50c
mov dword [esp + 0xc8], 0x7ffffffe
inc ebx
jmp 0x40f5b3
test ecx, ecx
jns 0x40f5b3
mov edx, dword [esp + 0x108]
mov esi, ecx
neg esi
mov dword [esp + 0xb4], edx
mov edx, dword [esp + 0x10c]
mov dword [esp + 0xb8], edx
mov edx, dword [esp + 0x100]
mov dword [esp + 0x6c], edx
mov edx, dword [esp + 0x104]
lea ecx, [esi - 1]
mov dword [esp + 0x70], edx
mov edx, dword [esp + 0xf8]
mov dword [esp + 0x74], edx
mov edx, dword [esp + 0xfc]
mov dword [esp + 0x78], edx
push ecx
push dword [esp + 0xbc]
push dword [esp + 0xbc]
push dword [esp + 0x7c]
push dword [esp + 0x7c]
push dword [esp + 0x8c]
push dword [esp + 0x8c]
call fcn.00412450
mov ebp, eax
cmp ebx, esi
jae 0x40f59b
mov ebx, esi
test ebp, ebp
js 0x40f5a8
mov dword [esp + 0xc8], ebp
jmp 0x40f5b3
mov dword [esp + 0xc8], 0x7ffffffe
cmp dword [esp + 0xcc], 0x7fffffff
jne 0x40f64d
mov edx, dword [esp + 0x108]
mov ecx, dword [esp + 0x10c]
mov dword [esp + 0x7c], edx
mov edx, dword [esp + 0x100]
mov dword [esp + 0x80], ecx
mov ecx, dword [esp + 0x104]
mov dword [esp + 0x84], edx
mov edx, dword [esp + 0xf8]
mov dword [esp + 0x88], ecx
mov ecx, dword [esp + 0xfc]
mov dword [esp + 0x8c], edx
mov dword [esp + 0x90], ecx
push ebx
push dword [esp + 0x84]
push dword [esp + 0x84]
push dword [esp + 0x94]
push dword [esp + 0x94]
push dword [esp + 0xa4]
push dword [esp + 0xa4]
call fcn.004125c0
inc ebx
mov dword [esp + 0xcc], eax
cmp dword [esp + 0xd0], 0x7fffffff
jne 0x40f692
push ebx
push dword [esp + 0x110]
push dword [esp + 0x110]
push dword [esp + 0x110]
push dword [esp + 0x110]
push dword [esp + 0x110]
push dword [esp + 0x110]
call fcn.00412730
inc ebx
mov dword [esp + 0xd4], eax
cmp ebx, 3
jne 0x40f6d2
cmp byte [esp + 0xd9], 0
jne 0x40f6d2
cmp dword [esp + 0x110], 0
sete dl
mov ecx, 0x40f88c
mov edi, 0x4cc290
push edx
lea esi, [esp + 0xf8]
mov eax, 0x22c
push ecx
push esi
push edi
push 0x37
call fcn.00411320
jmp 0x40f852
cmp byte [esp + 0xd9], 0
mov eax, ebx
je 0x40f6e9
movzx eax, byte [esp + 0xd9]
dec eax
jmp 0x40f6ea
inc ebx
test eax, eax
je 0x40f701
cmp eax, 1
je 0x40f75a
cmp eax, 2
je 0x40f7aa
jmp 0x40f7fa
mov edx, dword [esp + 0x108]
mov ecx, dword [esp + 0x10c]
mov dword [esp + 0x94], edx
mov edx, dword [esp + 0x94]
mov dword [esp + 0x98], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ecx
push edi
lea ecx, [esp + 0x20]
push ecx
lea eax, [esp + 0xcc]
call fcn.00412930
movzx edx, byte [esp + 0xda]
cmp ebx, edx
jae 0x40f74c
mov ebx, edx
cmp byte [esp + 0xda], 1
jbe 0x40f2ea
mov ecx, dword [esp + 0x100]
mov edx, dword [esp + 0x104]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x38], edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
push edi
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0xcc]
call fcn.00412930
movzx ecx, byte [esp + 0xda]
cmp ebx, ecx
jae 0x40f79c
mov ebx, ecx
cmp byte [esp + 0xda], 2
jbe 0x40f2ea
mov edx, dword [esp + 0xf8]
mov ecx, dword [esp + 0xfc]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], ecx
push edi
lea ecx, [esp + 0x28]
push ecx
lea eax, [esp + 0xcc]
call fcn.00412930
movzx edx, byte [esp + 0xda]
cmp ebx, edx
jae 0x40f7ec
mov ebx, edx
cmp byte [esp + 0xda], 3
jbe 0x40f2ea
mov dword [esp], 0x4d7d90
call fcn.00462d20
mov esi, 0x4cc2d0
mov edi, 0x4cc2f0
push esi
mov ebx, eax
mov eax, 3
push 0x16
push dword [esp + 0xe1]
push 0x24
push dword [esp + 0xe8]
push edi
push 0xf
call fcn.00415484
mov ecx, 0x4cc290
push edx
push eax
mov eax, ebx
push ecx
push 0x37
push 0x253
push 0
call fcn.00466af4
mov dword [esp], eax
call fcn.00463074
mov eax, ebx
mov ebx, dword [esp + 4]
mov ebp, dword [esp + 8]
mov esi, dword [esp + 0xc]
mov edi, dword [esp + 0x10]
add esp, 0xf4
ret 0x24