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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x50
mov eax, dword [esp + 0xa0]
mov ebp, dword [ecx + 0x48]
mov edi, dword [ebp + 4]
mov dword [esp + 0x4c], edi
test eax, eax
je 0x40f32e
cmp dword [ebp + 0x34], 0
jne 0x40f32e
mov dword [ecx + 0x1c], 3
jmp 0x40f836
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], edx
movzx edx, word [esp + 0x6c]
movzx eax, word [esp + 0x64]
movzx edx, dx
movzx ebx, word [esp + 0x74]
mov dword [esp + 0x3c], edx
mov esi, eax
mov dword [esp + 0x40], eax
lea esi, [eax + edx]
add esi, ebx
mov eax, dword [esp + 0xac]
xor edx, edx
add esi, eax
setb dl
add esi, edi
adc edx, 0
add esi, 0x2e
adc edx, 0
cmp esi, 0xffffffff
sbb edx, 0
jb 0x40f384
mov dword [ecx + 0x1c], 0xf
jmp 0x40f836
mov dword [esp + 0x38], ebx
mov dword [esp], ecx
movzx edx, word [esp + 0x8c]
xorps xmm0, xmm0
movups xmmword [esp + 0xc], xmm0
movups xmmword [esp + 0x1c], xmm0
mov word [esp + 0x2c], 0
mov dword [esp + 8], 0x2014b50
xor ecx, ecx
test dx, dx
mov ebx, 0x14
cmove ebx, ecx
mov byte [esp + 0xe], bl
movzx ebx, word [esp + 0x90]
mov byte [esp + 0x10], bl
mov byte [esp + 0x11], bh
movzx ebx, word [esp + 0x98]
mov byte [esp + 0x12], dl
mov byte [esp + 0x13], dh
movzx edx, word [esp + 0x94]
mov byte [esp + 0x14], dl
mov byte [esp + 0x15], dh
mov edx, dword [esp + 0x88]
mov byte [esp + 0x16], bl
mov byte [esp + 0x17], bh
mov byte [esp + 0x18], dl
mov byte [esp + 0x19], dh
mov ebx, edx
shr ebx, 0x10
mov byte [esp + 0x1a], bl
mov esi, dword [esp + 0x84]
shr edx, 0x18
mov byte [esp + 0x1b], dl
mov dword [esp + 4], edi
mov edi, dword [esp + 0x80]
neg esi
mov edx, 0
sbb edx, edx
or edx, edi
mov edi, dword [esp + 4]
mov byte [esp + 0x1c], dl
mov byte [esp + 0x1d], dh
mov ebx, edx
shr ebx, 0x10
mov byte [esp + 0x1e], bl
mov esi, dword [esp + 0x7c]
shr edx, 0x18
mov byte [esp + 0x1f], dl
mov edx, dword [esp + 0x78]
neg esi
mov ebx, 0
sbb ebx, ebx
or ebx, edx
mov byte [esp + 0x20], bl
mov byte [esp + 0x21], bh
mov edx, ebx
shr edx, 0x10
mov byte [esp + 0x22], dl
mov edx, dword [esp + 0xa4]
shr ebx, 0x18
mov byte [esp + 0x23], bl
mov esi, eax
movzx eax, word [esp + 0x6c]
lea ebx, [esi + eax]
movzx eax, word [esp + 0x64]
mov byte [esp + 0x24], al
mov byte [esp + 0x25], ah
mov byte [esp + 0x26], bl
mov byte [esp + 0x27], bh
movzx eax, word [esp + 0x74]
mov byte [esp + 0x28], al
mov byte [esp + 0x29], ah
mov byte [esp + 0x2e], dl
mov byte [esp + 0x2f], dh
mov ebx, edx
shr ebx, 0x10
mov byte [esp + 0x30], bl
mov ebx, ebp
shr edx, 0x18
mov byte [esp + 0x31], dl
neg dword [esp + 0x48]
sbb ecx, ecx
mov eax, dword [esp + 0x9c]
or ecx, eax
mov byte [esp + 0x32], cl
mov byte [esp + 0x33], ch
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x34], al
shr ecx, 0x18
mov byte [esp + 0x35], cl
lea esi, [edi + 0x2e]
mov ecx, dword [ebx + 8]
cmp ecx, esi
jae 0x40f53e
test ecx, ecx
mov eax, 1
cmovne eax, ecx
nop word cs:[eax + eax]
mov edi, eax
add eax, eax
cmp edi, esi
jb 0x40f510
push edi
push dword [ebx + 0xc]
push dword [ebx]
mov eax, dword [esp + 0xc]
push dword [eax + 0x34]
call dword [eax + 0x30]
add esp, 0x10
test eax, eax
je 0x40f808
mov dword [ebx], eax
mov dword [ebx + 8], edi
mov edi, dword [esp + 4]
jmp 0x40f540
mov eax, dword [ebx]
mov dword [ebx + 4], esi
mov ecx, dword [ebx + 0xc]
mov esi, edi
not esi
and esi, ecx
mov edx, ecx
not edx
and edx, edi
imul edx, esi
mov esi, ecx
and esi, edi
mov ebp, edi
imul edi, ecx, 0x2e
or ecx, ebp
imul ecx, esi
add ecx, eax
add ecx, edx
lea eax, [esp + 8]
push edi
push eax
push ecx
call fcn.00416bf0
add esp, 0xc
mov ebp, dword [ebx + 4]
mov edi, dword [ebx + 8]
mov eax, dword [esp + 0x40]
lea esi, [eax + ebp]
cmp edi, esi
jae 0x40f5c8
test edi, edi
mov eax, 1
cmovne eax, edi
nop word cs:[eax + eax]
mov edi, eax
add eax, eax
cmp edi, esi
jb 0x40f5a0
push edi
push dword [ebx + 0xc]
push dword [ebx]
mov eax, dword [esp + 0xc]
push dword [eax + 0x34]
call dword [eax + 0x30]
add esp, 0x10
test eax, eax
je 0x40f808
mov dword [ebx], eax
mov dword [ebx + 8], edi
movzx ecx, word [esp + 0x6c]
mov dword [ebx + 4], esi
cmp word [esp + 0x64], 0
je 0x40f617
mov eax, dword [ebx + 0xc]
mov ecx, ebp
not ecx
and ecx, eax
mov edx, eax
not edx
and edx, ebp
imul edx, ecx
mov ecx, eax
and ecx, ebp
or ebp, eax
imul ebp, ecx
add ebp, edx
add ebp, dword [ebx]
mov ecx, dword [esp + 0x40]
imul ecx, eax
push ecx
push dword [esp + 0x48]
push ebp
call fcn.00416bf0
movzx ecx, word [esp + 0x78]
add esp, 0xc
mov esi, dword [ebx + 4]
mov edi, dword [ebx + 8]
mov eax, dword [esp + 0x3c]
lea ebp, [esi + eax]
cmp edi, ebp
jae 0x40f666
test edi, edi
mov eax, 1
cmovne eax, edi
nop dword [eax]
mov edi, eax
add eax, eax
cmp edi, ebp
jb 0x40f630
push edi
push dword [ebx + 0xc]
push dword [ebx]
mov eax, dword [esp + 0xc]
push dword [eax + 0x34]
call dword [eax + 0x30]
add esp, 0x10
test eax, eax
je 0x40f808
mov dword [ebx], eax
mov dword [ebx + 8], edi
mov eax, dword [esp + 0xac]
movzx ecx, word [esp + 0x6c]
jmp 0x40f66d
mov eax, dword [esp + 0xac]
mov dword [ebx + 4], ebp
test cx, cx
je 0x40f6b6
mov eax, dword [ebx + 0xc]
mov ecx, esi
not ecx
and ecx, eax
mov edx, eax
not edx
and edx, esi
imul edx, ecx
mov ecx, eax
and ecx, esi
or esi, eax
imul esi, ecx
add esi, edx
add esi, dword [ebx]
mov ecx, dword [esp + 0x3c]
imul ecx, eax
push ecx
push dword [esp + 0x6c]
push esi
call fcn.00416bf0
mov eax, dword [esp + 0xb8]
add esp, 0xc
mov ebp, dword [ebx + 4]
mov edi, dword [ebx + 8]
lea esi, [eax + ebp]
cmp edi, esi
jae 0x40f6ff
test edi, edi
mov eax, 1
cmovne eax, edi
nop word [eax + eax]
mov edi, eax
add eax, eax
cmp edi, esi
jb 0x40f6d0
push edi
push dword [ebx + 0xc]
push dword [ebx]
mov eax, dword [esp + 0xc]
push dword [eax + 0x34]
call dword [eax + 0x30]
add esp, 0x10
test eax, eax
je 0x40f808
mov dword [ebx], eax
mov dword [ebx + 8], edi
mov eax, dword [esp + 0xac]
mov dword [ebx + 4], esi
test eax, eax
je 0x40f741
mov esi, eax
mov eax, dword [ebx + 0xc]
mov ecx, ebp
not ecx
and ecx, eax
mov edx, eax
not edx
and edx, ebp
imul edx, ecx
mov ecx, eax
and ecx, ebp
or ebp, eax
imul ebp, ecx
add ebp, edx
add ebp, dword [ebx]
imul esi, eax
push esi
push dword [esp + 0xac]
push ebp
call fcn.00416bf0
add esp, 0xc
mov esi, dword [ebx + 4]
mov edi, dword [ebx + 8]
mov eax, dword [esp + 0x38]
lea ebp, [esi + eax]
cmp edi, ebp
jae 0x40f788
test edi, edi
mov eax, 1
cmovne eax, edi
nop word cs:[eax + eax]
mov edi, eax
add eax, eax
cmp edi, ebp
jb 0x40f760
push edi
push dword [ebx + 0xc]
push dword [ebx]
mov eax, dword [esp + 0xc]
push dword [eax + 0x34]
call dword [eax + 0x30]
add esp, 0x10
test eax, eax
je 0x40f808
mov dword [ebx], eax
mov dword [ebx + 8], edi
mov dword [ebx + 4], ebp
cmp word [esp + 0x74], 0
je 0x40f7c7
mov eax, dword [ebx + 0xc]
mov ecx, esi
not ecx
and ecx, eax
mov edx, eax
not edx
and edx, esi
imul edx, ecx
mov ecx, eax
and ecx, esi
or esi, eax
imul esi, ecx
add esi, edx
add esi, dword [ebx]
mov ecx, dword [esp + 0x38]
imul ecx, eax
push ecx
push dword [esp + 0x74]
push esi
call fcn.00416bf0
add esp, 0xc
mov esi, dword [ebx + 0x14]
mov ecx, dword [ebx + 0x18]
lea edi, [esi + 1]
cmp ecx, edi
jae 0x40f840
test ecx, ecx
mov eax, 1
cmovne eax, ecx
nop
mov ebp, eax
add eax, eax
cmp ebp, edi
jb 0x40f7e0
push ebp
push dword [ebx + 0x1c]
push dword [ebx + 0x10]
mov eax, dword [esp + 0xc]
push dword [eax + 0x34]
call dword [eax + 0x30]
add esp, 0x10
test eax, eax
je 0x40f808
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x18], ebp
jmp 0x40f843
mov edi, dword [esp + 4]
cmp dword [ebx + 8], edi
mov esi, dword [esp]
jae 0x40f82c
push edi
push dword [ebx + 0xc]
push dword [ebx]
push dword [esi + 0x34]
call dword [esi + 0x30]
add esp, 0x10
test eax, eax
je 0x40f82f
mov dword [ebx], eax
mov dword [ebx + 8], edi
mov dword [ebx + 4], edi
mov dword [esi + 0x1c], 0x10
xor eax, eax
add esp, 0x50
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebx + 0x10]
mov dword [ebx + 0x14], edi
mov ecx, dword [ebx + 0x1c]
mov edi, esi
not edi
and edi, ecx
mov edx, ecx
not edx
and edx, esi
imul edx, edi
mov edi, ecx
and edi, esi
or esi, ecx
imul esi, edi
add esi, eax
add esi, edx
lea eax, [esp + 0x4c]
push ecx
push eax
push esi
call fcn.00416bf0
add esp, 0xc
mov eax, 1
jmp 0x40f838