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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x50
mov eax, dword [esp + 0x9c]
mov ebp, dword [ecx + 0x48]
mov edi, dword [ebp + 4]
mov dword [esp + 0x4c], edi
test eax, eax
je 0x40fb7e
cmp dword [ebp + 0x34], 0
jne 0x40fb7e
mov dword [ecx + 0x1c], 3
jmp 0x410066
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 + 0xa8]
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 0x40fbd4
mov dword [ecx + 0x1c], 0xf
jmp 0x410066
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
xor ecx, ecx
test dx, dx
mov ebx, 0x14
cmove ebx, ecx
mov dword [esp + 8], 0x2014b50
mov byte [esp + 0xe], bl
movzx ebx, word [esp + 0x90]
mov byte [esp + 0x10], bl
mov byte [esp + 0x11], bh
movzx ebx, word [esp + 0x94]
mov byte [esp + 0x12], dl
mov byte [esp + 0x13], dh
mov edx, dword [esp + 0x88]
mov byte [esp + 0x14], bl
mov byte [esp + 0x15], 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 + 0xa0]
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 + 0x98]
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 0x40fd7e
test ecx, ecx
mov eax, 1
cmovne eax, ecx
nop word cs:[eax + eax]
mov edi, eax
add eax, eax
cmp edi, esi
jb 0x40fd50
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 0x410038
mov dword [ebx], eax
mov dword [ebx + 8], edi
mov edi, dword [esp + 4]
jmp 0x40fd80
mov eax, dword [ebx]
mov dword [ebx + 4], esi
mov edx, dword [ebx + 0xc]
mov ecx, edx
imul ecx, edi
add ecx, eax
mov eax, edx
and eax, 0xffffffd1
mov esi, edx
and esi, 0x2e
or edx, 0x2e
imul edx, esi
xor esi, 0x2e
imul esi, eax
add edx, esi
lea eax, [esp + 8]
push edx
push eax
push ecx
call fcn.00416f20
add esp, 0xc
mov esi, dword [ebx + 4]
mov edi, dword [ebx + 8]
mov eax, dword [esp + 0x40]
lea ebp, [esi + eax]
cmp edi, ebp
jae 0x40fdf8
test edi, edi
mov eax, 1
cmovne eax, edi
nop
mov edi, eax
add eax, eax
cmp edi, ebp
jb 0x40fdd0
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 0x410038
mov dword [ebx], eax
mov dword [ebx + 8], edi
movzx ecx, word [esp + 0x6c]
mov dword [ebx + 4], ebp
cmp word [esp + 0x64], 0
je 0x40fe47
mov eax, dword [ebx + 0xc]
imul esi, eax
add esi, dword [ebx]
mov edi, dword [esp + 0x40]
mov ecx, edi
not ecx
and ecx, eax
mov edx, eax
not edx
and edx, edi
imul edx, ecx
mov ecx, eax
and ecx, edi
or eax, edi
imul eax, ecx
add eax, edx
push eax
push dword [esp + 0x48]
push esi
call fcn.00416f20
movzx ecx, word [esp + 0x78]
add esp, 0xc
mov ebp, dword [ebx + 4]
mov edi, dword [ebx + 8]
mov eax, dword [esp + 0x3c]
lea esi, [eax + ebp]
cmp edi, esi
jae 0x40fe96
test edi, edi
mov eax, 1
cmovne eax, edi
nop dword [eax]
mov edi, eax
add eax, eax
cmp edi, esi
jb 0x40fe60
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 0x410038
mov dword [ebx], eax
mov dword [ebx + 8], edi
mov eax, dword [esp + 0xa8]
movzx ecx, word [esp + 0x6c]
jmp 0x40fe9d
mov eax, dword [esp + 0xa8]
mov dword [ebx + 4], esi
test cx, cx
je 0x40fee6
mov eax, dword [ebx + 0xc]
imul ebp, eax
add ebp, dword [ebx]
mov esi, dword [esp + 0x3c]
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 eax, esi
imul eax, ecx
add eax, edx
push eax
push dword [esp + 0x6c]
push ebp
call fcn.00416f20
mov eax, dword [esp + 0xb4]
add esp, 0xc
mov esi, dword [ebx + 4]
mov edi, dword [ebx + 8]
lea ebp, [esi + eax]
cmp edi, ebp
jae 0x40ff2f
test edi, edi
mov eax, 1
cmovne eax, edi
nop word [eax + eax]
mov edi, eax
add eax, eax
cmp edi, ebp
jb 0x40ff00
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 0x410038
mov dword [ebx], eax
mov dword [ebx + 8], edi
mov eax, dword [esp + 0xa8]
mov dword [ebx + 4], ebp
test eax, eax
je 0x40ff71
mov edi, eax
mov eax, dword [ebx + 0xc]
imul esi, eax
add esi, dword [ebx]
mov ecx, edi
not ecx
and ecx, eax
mov edx, eax
not edx
and edx, edi
imul edx, ecx
mov ecx, eax
and ecx, edi
or eax, edi
imul eax, ecx
add eax, edx
push eax
push dword [esp + 0xa8]
push esi
call fcn.00416f20
add esp, 0xc
mov ebp, dword [ebx + 4]
mov edi, dword [ebx + 8]
mov eax, dword [esp + 0x38]
lea esi, [eax + ebp]
cmp edi, esi
jae 0x40ffb8
test edi, edi
mov eax, 1
cmovne eax, edi
nop word cs:[eax + eax]
mov edi, eax
add eax, eax
cmp edi, esi
jb 0x40ff90
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 0x410038
mov dword [ebx], eax
mov dword [ebx + 8], edi
mov dword [ebx + 4], esi
cmp word [esp + 0x74], 0
je 0x40fff7
mov eax, dword [ebx + 0xc]
imul ebp, eax
add ebp, dword [ebx]
mov esi, dword [esp + 0x38]
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 eax, esi
imul eax, ecx
add eax, edx
push eax
push dword [esp + 0x74]
push ebp
call fcn.00416f20
add esp, 0xc
mov esi, dword [ebx + 0x14]
mov ecx, dword [ebx + 0x18]
lea edi, [esi + 1]
cmp ecx, edi
jae 0x410070
test ecx, ecx
mov eax, 1
cmovne eax, ecx
nop
mov ebp, eax
add eax, eax
cmp ebp, edi
jb 0x410010
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 0x410038
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x18], ebp
jmp 0x410073
mov edi, dword [esp + 4]
cmp dword [ebx + 8], edi
mov esi, dword [esp]
jae 0x41005c
push edi
push dword [ebx + 0xc]
push dword [ebx]
push dword [esi + 0x34]
call dword [esi + 0x30]
add esp, 0x10
test eax, eax
je 0x41005f
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 edx, ecx
not edx
imul esi, ecx
add esi, eax
mov eax, ecx
and eax, 0xfffffffe
mov edi, ecx
and edi, 1
neg edi
and edx, 1
imul edx, eax
or ecx, 1
and ecx, edi
add ecx, edx
lea eax, [esp + 0x4c]
push ecx
push eax
push esi
call fcn.00416f20
add esp, 0xc
mov eax, 1
jmp 0x410068