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

Disassembly:
push 0xffffffffffffffff
push 0x472b32
mov eax, dword fs:[0]
push eax
sub esp, 0x90
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48a348]
xor eax, esp
push eax
lea eax, [esp + 0xa4]
mov dword fs:[0], eax
lea eax, [esp + 0x3c]
push eax
call fcn.00410390
mov eax, dword [esp + 0xb8]
xor ebx, ebx
lea ecx, [esp + 0x3c]
mov dword [esp + 0xac], ebx
push 1
push ecx
mov cl, 1
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call fcn.00406ba0
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
mov edx, eax
sub edx, ecx
test edx, 0xfffffff0
jne 0x40f263
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0xb0], 0xffffffff
call fcn.004103f0
jmp 0x40f71b
mov edi, ecx
cmp ecx, eax
jbe 0x40f276
call fcn.0045e4f1
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], edi
mov ebp, eax
cmp ecx, eax
jbe 0x40f28d
call fcn.0045e4f1
test esi, esi
je 0x40f297
cmp esi, dword [esp + 0x3c]
je 0x40f29c
call fcn.0045e4f1
cmp edi, ebp
je 0x40f56d
test esi, esi
jne 0x40f2f1
call fcn.0045e4f1
cmp edi, dword [esi + 0x10]
jb 0x40f2b7
call fcn.0045e4f1
mov ebx, dword [edi + 8]
mov eax, dword [edi + 0xc]
mov esi, dword [edi]
mov ebp, dword [edi + 4]
mov dword [esp + 0x9c], eax
mov ecx, ebx
sub ecx, esi
sub eax, ebp
push 0x14
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], eax
call fcn.0045edb3
mov edi, eax
add esp, 4
test edi, edi
jne 0x40f2f5
jmp 0x40f336
mov esi, dword [esi]
jmp 0x40f2ad
push 8
call fcn.0045edb3
add esp, 4
mov dword [edi + 8], eax
test eax, eax
jne 0x40f313
push edi
call fcn.0045ecd6
add esp, 4
xor edi, edi
jmp 0x40f336
xor ecx, ecx
xor edx, edx
xor eax, eax
mov dword [edi + 4], 0
mov word [edi + 0xc], cx
mov word [edi + 0x10], dx
mov word [edi + 0xe], ax
mov word [edi + 0x12], cx
mov dword [edi], 1
mov eax, dword [esp + 0x9c]
sub ebx, esi
sub eax, ebp
mov dword [esp + 0x38], edi
mov dword [edi + 4], 0
mov word [esp + 0x70], bx
mov word [esp + 0x72], ax
test bx, bx
je 0x40f3b9
test ax, ax
je 0x40f3b9
mov ecx, dword [esp + 0x70]
lea edx, [esp + 0x88]
mov dword [esp + 0x84], edx
lea edx, [esi + ecx]
mov ecx, dword [esp + 0x72]
mov eax, 1
mov word [esp + 0x8a], dx
lea edx, [ecx + ebp]
mov dword [esp + 0x80], eax
mov dword [esp + 0x7c], eax
mov eax, edi
mov ecx, edi
lea ebx, [esp + 0x7c]
mov word [esp + 0x88], si
mov word [esp + 0x8c], bp
mov word [esp + 0x8e], dx
call fcn.0045c7d0
mov edx, dword [esp + 0xb8]
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x6c]
push ecx
push edx
mov byte [esp + 0xb8], 1
call fcn.00406b10
mov eax, dword [esp + 0x68]
mov ebx, eax
mov eax, dword [eax + 8]
push eax
call fcn.0045ecd6
add esp, 4
push ebx
call fcn.0045ecd6
mov byte [esp + 0xb0], 0
mov ecx, dword [edi + 8]
add esp, 4
push ecx
call fcn.0045ecd6
add esp, 4
push edi
call fcn.0045ecd6
mov edx, dword [esp + 0xb8]
mov eax, dword [edx + 0x54]
mov edx, dword [eax + 0xac]
mov edi, dword [eax + 0xb4]
mov ecx, dword [eax + 0xa8]
mov eax, dword [eax + 0xb0]
add esp, 4
sub edi, edx
sub eax, ecx
cmp esi, ecx
jge 0x40f444
sub esi, ecx
add dword [esp + 0x30], esi
mov dword [esp + 0x54], ecx
cmp ebp, edx
jge 0x40f452
sub ebp, edx
add dword [esp + 0x34], ebp
mov dword [esp + 0x58], edx
mov esi, dword [esp + 0x54]
mov ebp, dword [esp + 0x30]
lea ebx, [ecx + eax]
add ebp, esi
cmp ebp, ebx
jle 0x40f46b
sub ecx, esi
add ecx, eax
mov dword [esp + 0x30], ecx
mov ebx, dword [esp + 0x58]
mov ebp, dword [esp + 0x34]
lea eax, [edx + edi]
lea ecx, [ebx + ebp]
cmp ecx, eax
jle 0x40f483
sub edx, ebx
add edx, edi
mov ebp, edx
mov edi, dword [esp + 0x30]
test edi, edi
jle 0x40f52e
test ebp, ebp
jle 0x40f52e
add edi, esi
add ebp, ebx
call fcn.0045bcb0
mov esi, eax
mov eax, dword [esp + 0x54]
sub edi, eax
push esi
sub ebp, ebx
push esi
lea ecx, [esp + 0x64]
mov dword [esp + 0x40], esi
mov dword [esi + 4], 0
mov word [esp + 0x64], ax
mov word [esp + 0x66], bx
mov word [esp + 0x68], di
mov word [esp + 0x6a], bp
call fcn.0045bd10
add esp, 8
mov ecx, dword [esp + 0xb8]
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x68]
push eax
push ecx
mov byte [esp + 0xb8], 2
call fcn.00406a80
mov eax, dword [esp + 0x64]
mov edx, dword [eax + 8]
push edx
mov edi, eax
call fcn.0045ecd6
add esp, 4
push edi
call fcn.0045ecd6
mov byte [esp + 0xb0], 0
mov eax, dword [esi + 8]
add esp, 4
push eax
call fcn.0045ecd6
add esp, 4
push esi
call fcn.0045ecd6
add esp, 4
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x40f569
call fcn.0045e4f1
xor eax, eax
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [eax + 0x10]
jb 0x40f54b
call fcn.0045e4f1
add dword [esp + 0x1c], 0x10
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
jmp 0x40f282
mov eax, dword [eax]
jmp 0x40f53d
mov eax, dword [esp + 0xb8]
push 1
lea edx, [esp + 0x40]
push edx
mov cl, 1
call fcn.00406ba0
mov eax, dword [esp + 0x4c]
mov esi, dword [esp + 0x48]
mov ecx, eax
sub ecx, esi
test ecx, 0xfffffff0
jne 0x40f5b0
lea edx, [esp + 0x3c]
push edx
mov dword [esp + 0xb0], 0xffffffff
call fcn.004103f0
jmp 0x40f71b
cmp esi, eax
jbe 0x40f5b9
call fcn.0045e4f1
mov ebp, dword [esp + 0x3c]
mov dword [esp + 0x18], ebp
mov edi, esi
mov esi, dword [esp + 0x4c]
mov dword [esp + 0x1c], edi
cmp dword [esp + 0x48], esi
jbe 0x40f5d6
call fcn.0045e4f1
test ebp, ebp
je 0x40f5e0
cmp ebp, dword [esp + 0x3c]
je 0x40f5e5
call fcn.0045e4f1
cmp edi, esi
je 0x40f6b1
test ebp, ebp
jne 0x40f64f
call fcn.0045e4f1
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x40f602
call fcn.0045e4f1
mov esi, dword [edi + 4]
mov edx, dword [esp + 0x2c]
cmp esi, edx
mov ecx, dword [edi + 8]
mov eax, dword [edi + 0xc]
mov ebp, dword [edi]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], eax
jle 0x40f654
cmp ebx, dword [esp + 0x28]
jge 0x40f674
cmp dword [esp + 0x24], edx
jge 0x40f674
mov eax, dword [esp + 0xbc]
mov edi, dword [esp + 0xb4]
push eax
lea ebx, [esp + 0x24]
call fcn.0040fee0
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x74]
mov edi, dword [esp + 0x1c]
jmp 0x40f674
mov eax, dword [ebp]
jmp 0x40f5f8
cmp ebp, ebx
jl 0x40f65a
mov ebp, ebx
mov ebx, dword [esp + 0x24]
cmp esi, ebx
jl 0x40f664
mov esi, ebx
mov ebx, dword [esp + 0x28]
cmp ecx, ebx
jg 0x40f66e
mov ecx, ebx
cmp eax, edx
jg 0x40f674
mov eax, edx
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], ebp
test eax, eax
jne 0x40f6ad
call fcn.0045e4f1
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x40f69d
call fcn.0045e4f1
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
add edi, 0x10
jmp 0x40f5c3
mov eax, dword [eax]
jmp 0x40f693
cmp ebx, dword [esp + 0x28]
jge 0x40f6d9
mov ecx, dword [esp + 0x2c]
cmp dword [esp + 0x24], ecx
jge 0x40f6d9
mov edx, dword [esp + 0xbc]
mov edi, dword [esp + 0xb4]
push edx
lea ebx, [esp + 0x24]
call fcn.0040fee0
mov dword [esp + 0xac], 3
mov eax, dword [esp + 0x48]
test eax, eax
je 0x40f6f5
push eax
call fcn.0045dc91
add esp, 4
xor eax, eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0xac], 0xffffffff
mov eax, dword [esp + 0x3c]
push eax
call fcn.0045dc91
add esp, 4
mov ecx, dword [esp + 0xa4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9c
ret 0xc