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

Disassembly:
push 0xffffffffffffffff
push 0x479b3b
mov eax, dword fs:[0]
push eax
sub esp, 0xf0
push ebx
push ebp
push esi
push edi
mov eax, dword [0x49f864]
xor eax, esp
push eax
lea eax, [esp + 0x104]
mov dword fs:[0], eax
mov esi, ecx
mov eax, 0x132
mov ecx, 0x1a8
mov dword [esp + 0x64], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x84], eax
mov eax, 0x2c2
mov edi, 0xdc
mov edx, 0x142
mov dword [esp + 0x88], ecx
mov dword [esp + 0xb0], ecx
mov ecx, 8
mov dword [esp + 0x80], edx
mov dword [esp + 0x8c], eax
mov dword [esp + 0x94], eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], edx
mov dword [esp + 0xac], eax
mov eax, 0x198
mov edx, 0x138
mov ebp, 0x10
mov ebx, 0x76
mov dword [esp + 0x78], edi
mov dword [esp + 0xa0], edi
mov dword [esp + 0xb4], ecx
mov dword [esp + 0xb8], ecx
mov dword [esp + 0xbc], ecx
mov edi, 0x6c
mov dword [esp + 0xc4], ecx
mov dword [esp + 0xcc], ecx
mov dword [esp + 0xd4], ecx
mov dword [esp + 0xe0], ecx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x68], ebp
mov dword [esp + 0x70], ebx
mov dword [esp + 0x90], ebp
mov dword [esp + 0x98], ebx
mov dword [esp + 0xc0], edi
mov dword [esp + 0xc8], 0xd0
mov dword [esp + 0xd0], edx
mov dword [esp + 0xd8], 0x19c
mov dword [esp + 0xdc], eax
mov dword [esp + 0xe4], eax
mov dword [esp + 0xe8], edi
mov dword [esp + 0xec], eax
mov dword [esp + 0xf0], 0xd4
mov dword [esp + 0xf4], eax
mov dword [esp + 0xf8], edx
mov dword [esp + 0xfc], eax
mov dword [esp + 0x100], 0x1a0
call fcn.00413710
mov ebx, dword [esp + 0x114]
mov dword [esp + 0x10c], 0
cmp ebx, 6
jb 0x40f704
lea ecx, [esp + 0x3c]
mov dword [esp + 0x10c], 0xffffffff
call fcn.00413ff0
xor eax, eax
jmp 0x40fb43
cmp dword [esi + 8], 0
je 0x40f6e9
cmp dword [esi + 0x20], 0
je 0x40f6e9
cmp dword [esi + 0x28], 0
je 0x40f6e9
cmp dword [esi + 0x2c], 0
je 0x40f6e9
push 0x258
push 0x320
push 0
push 0
lea eax, [esp + 0x34]
push eax
mov dword [esi + 0x14], ebx
call dword [0x47a22c]
mov edx, dword [esi + 0x28]
lea ecx, [esp + 0x24]
push ecx
mov eax, ecx
mov ecx, dword [esi + 0x24]
add edx, 0x108
push edx
push eax
add ecx, 0x108
call fcn.0040ac80
test eax, eax
je 0x40f6e9
mov ecx, esi
call fcn.0040e810
mov dword [esp + 0x38], eax
lea ecx, [ebx + ebx*4]
xor eax, eax
add ecx, ecx
mov dword [esp + 0x34], ecx
lea ebp, [esp + 0xb8]
jmp 0x40f784
mov ecx, dword [esp + 0x34]
lea edi, [eax + 0x20]
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], edi
cmp dword [esp + 0x38], ecx
jne 0x40f7a7
mov dword [esp + 0x14], 0x1e0
mov dword [esp + 0x1c], 0x230
jmp 0x40f7b8
lea ecx, [ebx + ebx*4]
shl ecx, 4
mov dword [esp + 0x14], ecx
add ecx, 0x50
mov dword [esp + 0x1c], ecx
mov eax, dword [ebp - 4]
mov edx, dword [esi + 0x2c]
mov dword [esp + 0x24], eax
add eax, 0x50
mov dword [esp + 0x2c], eax
mov eax, dword [ebp]
mov dword [esp + 0x28], eax
add eax, 0x20
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esi + 0x24]
add edx, 0x108
mov dword [esp + 0x34], eax
push edx
lea eax, [esp + 0x2c]
push eax
add ecx, 0x108
call fcn.0040ac80
test eax, eax
je 0x40f6e9
inc dword [esp + 0x34]
mov eax, edi
add ebp, 8
cmp eax, 0x140
jl 0x40f780
xor eax, eax
xor edi, edi
mov ebp, 0x188
jmp 0x40f822
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], 0x4c
cmp dword [esi + 0x10], eax
jne 0x40f841
mov dword [esp + 0x18], 0x140
mov dword [esp + 0x20], ebp
jmp 0x40f84d
mov dword [esp + 0x18], ebp
mov dword [esp + 0x20], 0x1d0
mov eax, dword [esp + edi*8 + 0x64]
mov edx, dword [esi + 0x2c]
mov dword [esp + 0x24], eax
add eax, 0x4c
mov dword [esp + 0x2c], eax
mov eax, dword [esp + edi*8 + 0x68]
mov dword [esp + 0x28], eax
add eax, 0x48
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esi + 0x24]
add edx, 0x108
mov dword [esp + 0x34], eax
push edx
lea eax, [esp + 0x2c]
push eax
add ecx, 0x108
call fcn.0040ac80
test eax, eax
je 0x40f6e9
inc edi
cmp edi, 0xa
jl 0x40f820
cmp dword [esi + 0x10], 0
mov dword [esp + 0x18], 0x140
mov dword [esp + 0x20], 0x190
jne 0x40f8c3
mov dword [esp + 0x14], 0x180
mov dword [esp + 0x1c], 0x1d8
jmp 0x40f8d3
mov dword [esp + 0x14], 0x1d8
mov dword [esp + 0x1c], 0x230
push 0x250
push 0x230
push 0x200
push 0x1d8
lea ecx, [esp + 0x34]
push ecx
call dword [0x47a22c]
mov eax, dword [esi + 0x2c]
lea edx, [esp + 0x14]
push edx
add eax, 0x108
push eax
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esi + 0x24]
add ecx, 0x108
call fcn.0040ac80
test eax, eax
je 0x40f6e9
lea eax, [ebx + ebx*8]
imul ebx, ebx, 0x4e
add eax, eax
add eax, eax
add eax, eax
mov dword [esp + 0x18], eax
add eax, 0x48
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x2c]
lea edx, [esp + 0x14]
push edx
add eax, 0x108
push eax
lea ecx, [esp + 0x2c]
add ebx, 4
push ecx
mov ecx, dword [esi + 0x24]
mov dword [esp + 0x30], ebx
add ebx, 0x4c
add ecx, 0x108
mov dword [esp + 0x20], 0x230
mov dword [esp + 0x28], 0x27c
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], 0x208
mov dword [esp + 0x3c], 0x250
call fcn.0040ac80
test eax, eax
je 0x40f6e9
mov edx, dword [esi + 0x14]
push edx
mov ecx, esi
call fcn.0040e8f0
test eax, eax
je 0x40f6e9
xor ebp, ebp
mov dword [esp + 0x34], ebp
jmp 0x40f9a8
mov ebp, dword [esp + 0x34]
mov eax, 0x66666667
imul ebp
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, eax
imul ecx, ecx, 0x190
mov dword [esp + 0x38], ecx
add ecx, 0x60
mov dword [esp + 0x24], ecx
add ecx, 0xc8
mov dword [esp + 0x2c], ecx
lea ecx, [eax + eax*4]
sub ebp, ecx
mov edi, ebp
mov ebx, eax
imul edi, edi, 0x66
imul ebx, ebx, 0x12c
lea ebp, [ebp + ebp*8]
lea ecx, [edi + 0x10]
mov dword [esp + 0x28], ecx
add ecx, 0x10
add ebp, ebp
mov dword [esp + 0x30], ecx
lea edx, [ebx + 0xc8]
mov dword [esp + 0x1c], edx
mov edx, dword [esi + 0x30]
add ebp, ebp
add ebp, ebp
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esi + 0x24]
lea eax, [ebp + 0x10]
add edx, 0x108
mov dword [esp + 0x24], eax
push edx
lea eax, [esp + 0x2c]
push eax
add ecx, 0x108
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebp
call fcn.0040ac80
test eax, eax
je 0x40f6e9
mov eax, dword [esp + 0x38]
add eax, 0x24
mov dword [esp + 0x38], eax
mov dword [esp + 0x24], eax
add eax, 0x104
mov dword [esp + 0x2c], eax
lea eax, [edi + 0x2a]
mov dword [esp + 0x28], eax
add eax, 0x14
mov dword [esp + 0x30], eax
lea eax, [ebp + 0x18]
mov dword [esp + 0x18], eax
add eax, 0x14
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x30]
lea edx, [esp + 0x14]
lea ecx, [ebx + 0x104]
mov dword [esp + 0x1c], ecx
push edx
add eax, 0x108
push eax
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esi + 0x24]
add ecx, 0x108
mov dword [esp + 0x20], ebx
call fcn.0040ac80
test eax, eax
je 0x40f6e9
mov eax, dword [esp + 0x38]
mov dword [esp + 0x24], eax
add eax, 0x104
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x30]
lea edx, [esp + 0x14]
push edx
add eax, 0x108
push eax
lea ecx, [esp + 0x2c]
add edi, 0x48
add ebp, 0x30
push ecx
mov ecx, dword [esi + 0x24]
mov dword [esp + 0x34], edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebp
add edi, 0x10
add ebx, 0x104
add ebp, 0x10
add ecx, 0x108
mov dword [esp + 0x3c], edi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebp
call fcn.0040ac80
test eax, eax
je 0x40f6e9
mov eax, dword [esp + 0x34]
inc eax
cmp eax, 0xa
mov dword [esp + 0x34], eax
jl 0x40f9a4
lea ecx, [esp + 0x3c]
mov dword [esi + 0xc], 1
mov dword [esp + 0x10c], 0xffffffff
call fcn.00413ff0
mov eax, 1
mov ecx, dword [esp + 0x104]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xfc
ret 4