Function at 0x40ed60
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 0x40ed8e
cmp dword [ebp + 0x34], 0
jne 0x40ed8e
mov dword [ecx + 0x1c], 3
jmp 0x40f2a6
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], edx
movzx eax, word [esp + 0x6c]
movzx esi, word [esp + 0x64]
movzx eax, ax
mov dword [esp + 0x3c], eax
mov edx, esi
mov dword [esp + 0x40], esi
lea edx, [esi + eax]
xor ebx, ebx
add edx, dword [esp + 0xac]
setb bl
add edx, edi
adc ebx, 0
add edx, 0x2e
adc ebx, 0
mov dword [esp + 4], edi
movzx edi, word [esp + 0x74]
mov esi, edx
xor esi, edi
mov eax, edi
mov dword [esp + 0x38], edi
and edx, edi
add edx, edx
add edx, esi
adc ebx, 0
cmp edx, 0xffffffff
sbb ebx, 0
jb 0x40edf7
mov dword [ecx + 0x1c], 0xf
jmp 0x40f2a6
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 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 eax, dword [esp + 0xac]
movzx esi, word [esp + 0x6c]
lea ebx, [eax + esi]
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 0x40efae
test ecx, ecx
mov eax, 1
cmovne eax, ecx
nop word cs:[eax + eax]
mov edi, eax
add eax, eax
cmp edi, esi
jb 0x40ef80
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 0x40f278
mov dword [ebx], eax
mov dword [ebx + 8], edi
mov edi, dword [esp + 4]
jmp 0x40efb0
mov eax, dword [ebx]
mov dword [ebx + 4], esi
mov ecx, dword [ebx + 0xc]
mov esi, ecx
not esi
and esi, edi
mov edx, edi
not edx
and edx, ecx
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.00416580
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 0x40f038
test edi, edi
mov eax, 1
cmovne eax, edi
nop word cs:[eax + eax]
mov edi, eax
add eax, eax
cmp edi, esi
jb 0x40f010
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 0x40f278
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 0x40f087
mov eax, dword [ebx + 0xc]
mov ecx, eax
not ecx
and ecx, ebp
mov edx, ebp
not edx
and edx, eax
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.00416580
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 0x40f0d6
test edi, edi
mov eax, 1
cmovne eax, edi
nop dword [eax]
mov edi, eax
add eax, eax
cmp edi, ebp
jb 0x40f0a0
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 0x40f278
mov dword [ebx], eax
mov dword [ebx + 8], edi
mov eax, dword [esp + 0xac]
movzx ecx, word [esp + 0x6c]
jmp 0x40f0dd
mov eax, dword [esp + 0xac]
mov dword [ebx + 4], ebp
test cx, cx
je 0x40f126
mov eax, dword [ebx + 0xc]
mov ecx, eax
not ecx
and ecx, esi
mov edx, esi
not edx
and edx, eax
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.00416580
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 0x40f16f
test edi, edi
mov eax, 1
cmovne eax, edi
nop word [eax + eax]
mov edi, eax
add eax, eax
cmp edi, esi
jb 0x40f140
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 0x40f278
mov dword [ebx], eax
mov dword [ebx + 8], edi
mov eax, dword [esp + 0xac]
mov dword [ebx + 4], esi
test eax, eax
je 0x40f1b1
mov esi, eax
mov eax, dword [ebx + 0xc]
mov ecx, eax
not ecx
and ecx, ebp
mov edx, ebp
not edx
and edx, eax
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.00416580
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 0x40f1f8
test edi, edi
mov eax, 1
cmovne eax, edi
nop word cs:[eax + eax]
mov edi, eax
add eax, eax
cmp edi, ebp
jb 0x40f1d0
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 0x40f278
mov dword [ebx], eax
mov dword [ebx + 8], edi
mov dword [ebx + 4], ebp
cmp word [esp + 0x74], 0
je 0x40f237
mov eax, dword [ebx + 0xc]
mov ecx, eax
not ecx
and ecx, esi
mov edx, esi
not edx
and edx, eax
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.00416580
add esp, 0xc
mov esi, dword [ebx + 0x14]
mov ecx, dword [ebx + 0x18]
lea edi, [esi + 1]
cmp ecx, edi
jae 0x40f2b0
test ecx, ecx
mov eax, 1
cmovne eax, ecx
nop
mov ebp, eax
add eax, eax
cmp ebp, edi
jb 0x40f250
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 0x40f278
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x18], ebp
jmp 0x40f2b3
mov edi, dword [esp + 4]
cmp dword [ebx + 8], edi
mov esi, dword [esp]
jae 0x40f29c
push edi
push dword [ebx + 0xc]
push dword [ebx]
push dword [esi + 0x34]
call dword [esi + 0x30]
add esp, 0x10
test eax, eax
je 0x40f29f
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, ecx
not edi
and edi, esi
mov edx, esi
not edx
and edx, ecx
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.00416580
add esp, 0xc
mov eax, 1
jmp 0x40f2a8