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

Disassembly:
push ebp
push edi
mov ebp, ecx
push esi
push ebx
sub esp, 0x5c
fld qword [esp + 0x70]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edx
mov edi, dword [esp + 0x78]
fld1
fxch st(1)
mov esi, dword [esp + 0x7c]
fucomi st(1)
fstp st(1)
jb 0x4ce10c
fstp st(0)
imul eax, dword [esi], 0x9e3779b1
xor eax, 0x85ebca77
rol eax, 0xd
mov edx, eax
shr edx, 5
and edx, 3
imul eax, eax, 0x9e3779b1
lea ecx, [edx + edx + 0x10]
mov edx, 1
shl edx, cl
xor eax, 0x85ebca77
lea ecx, [edx - 1]
rol eax, 0xd
mov dword [esi], eax
shr eax, 5
and eax, ecx
add edx, eax
lea ebx, [edx + ebp]
cmp ebx, dword [esp + 0x18]
ja 0x4ce0e4
add ebp, dword [esp + 0x1c]
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], ebp
mov ebp, ebx
call sub.msvcrt.dll_memset
imul eax, dword [esi], 0x9e3779b1
mov ecx, dword [esp + 0x1c]
xor eax, 0x85ebca77
rol eax, 0xd
mov dword [esi], eax
shr eax, 5
and eax, 0x1fff
movzx eax, byte [edi + eax]
mov byte [ecx + ebx - 1], al
jmp 0x4ce05d
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x74], 0
sub edx, ebp
add eax, ebp
mov dword [esp + 0x78], edx
mov dword [esp + 0x70], eax
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
jmp sub.msvcrt.dll_memset
test ecx, ecx
jne 0x4ce135
mov ebx, eax
mov ebp, 1
imul eax, dword [esi], 0x9e3779b1
xor eax, 0x85ebca77
rol eax, 0xd
mov dword [esi], eax
shr eax, 5
and eax, 0x1fff
movzx eax, byte [edi + eax]
mov byte [ebx], al
cmp ebp, dword [esp + 0x18]
jae 0x4ce3cb
fnstcw word [esp + 0x4e]
fmul dword [0x4feab8]
movzx eax, word [esp + 0x4e]
mov dword [esp + 0x2c], 1
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x20], edi
mov ah, 0xc
mov word [esp + 0x4c], ax
fldcw word [esp + 0x4c]
fistp qword [esp + 0x40]
fldcw word [esp + 0x4e]
mov eax, dword [esp + 0x40]
mov dword [esp + 0x28], eax
jmp 0x4ce2ea
test al, 0xe0
jne 0x4ce3b0
imul eax, eax, 0x9e3779b1
xor eax, 0x85ebca77
rol eax, 0xd
mov ecx, eax
shr ecx, 5
and ecx, 0x1ff
add ecx, 0xf
lea edx, [ebp + 4]
add ecx, edx
cmp ecx, dword [esp + 0x18]
mov edi, ecx
cmova edi, dword [esp + 0x18]
imul eax, eax, 0x9e3779b1
xor eax, 0x85ebca77
mov dword [esp + 0x1c], edi
rol eax, 0xd
imul ecx, eax, 0x9e3779b1
shr eax, 5
and eax, 0xf
xor ecx, 0x85ebca77
rol ecx, 0xd
cmp eax, 2
mov dword [esi], ecx
je 0x4ce1f7
shr ecx, 5
and ecx, 0x7fff
add ecx, 1
cmp ecx, ebp
cmova ecx, ebp
mov dword [esp + 0x2c], ecx
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x1c]
mov eax, ebp
sub eax, edi
cmp ebp, ecx
jae 0x4ce2e0
sub ecx, ebp
mov dword [esp + 0x24], ecx
lea ecx, [ebx + ebp]
mov dword [esp + 0x30], ecx
mov ecx, edx
sub ecx, edi
lea edi, [ebx + eax]
cmp ebp, ecx
setge cl
cmp eax, edx
setge dl
or edx, ecx
lea ecx, [ebx + ebp]
or ecx, edi
and ecx, 3
sete cl
test dl, cl
je 0x4ce3d5
mov edx, dword [esp + 0x24]
cmp edx, 9
jbe 0x4ce3d5
lea ecx, [edx - 4]
shr ecx, 2
add ecx, 1
lea edx, [ecx*4]
mov dword [esp + 0x34], edx
mov edx, ebp
not edx
add edx, dword [esp + 0x1c]
cmp edx, 2
jbe 0x4ce2b1
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ebx
mov eax, ecx
mov ebx, dword [esp + 0x30]
mov ecx, edi
mov edi, dword [esp + 0x20]
xor edx, edx
mov dword [esp + 0x48], esi
mov esi, dword [ecx + edx*4]
mov dword [ebx + edx*4], esi
add edx, 1
cmp edx, eax
jb 0x4ce286
mov eax, dword [esp + 0x38]
mov dword [esp + 0x20], edi
mov edi, dword [esp + 0x34]
mov ebx, dword [esp + 0x3c]
mov esi, dword [esp + 0x48]
add ebp, edi
add eax, edi
cmp edi, dword [esp + 0x24]
je 0x4ce2dc
movzx ecx, byte [ebx + eax]
mov edi, dword [esp + 0x1c]
lea edx, [ebp + 1]
cmp edi, edx
mov byte [ebx + ebp], cl
jbe 0x4ce2dc
movzx ecx, byte [ebx + eax + 1]
lea edx, [ebp + 2]
cmp edi, edx
mov byte [ebx + ebp + 1], cl
jbe 0x4ce2dc
movzx eax, byte [ebx + eax + 2]
mov byte [ebx + ebp + 2], al
mov ebp, dword [esp + 0x1c]
cmp dword [esp + 0x18], ebp
jbe 0x4ce3cd
imul eax, dword [esi], 0x9e3779b1
xor eax, 0x85ebca77
rol eax, 0xd
mov edx, eax
mov dword [esi], eax
imul eax, eax, 0x9e3779b1
shr edx, 5
and edx, 0x7fff
xor eax, 0x85ebca77
rol eax, 0xd
cmp dword [esp + 0x28], edx
ja 0x4ce180
test al, 0xe0
jne 0x4ce393
imul eax, eax, 0x9e3779b1
xor eax, 0x85ebca77
rol eax, 0xd
mov edx, eax
shr edx, 5
and edx, 0x1ff
add edx, 0xf
mov edi, dword [esp + 0x18]
add edx, ebp
mov dword [esi], eax
cmp edx, edi
cmova edx, edi
cmp ebp, edx
jae 0x4ce2e0
add ebp, ebx
lea ecx, [ebx + edx]
mov edi, dword [esp + 0x20]
jmp 0x4ce362
mov eax, dword [esi]
imul eax, eax, 0x9e3779b1
add ebp, 1
xor eax, 0x85ebca77
rol eax, 0xd
mov dword [esi], eax
shr eax, 5
and eax, 0x1fff
movzx eax, byte [edi + eax]
mov byte [ebp - 1], al
cmp ecx, ebp
jne 0x4ce360
mov dword [esp + 0x20], edi
mov ebp, edx
jmp 0x4ce2e0
imul eax, eax, 0x9e3779b1
xor eax, 0x85ebca77
rol eax, 0xd
mov edx, eax
shr edx, 5
and edx, 0xf
jmp 0x4ce33d
imul eax, eax, 0x9e3779b1
xor eax, 0x85ebca77
rol eax, 0xd
mov ecx, eax
shr ecx, 5
and ecx, 0xf
jmp 0x4ce1a4
fstp st(0)
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, dword [esp + 0x1c]
lea edx, [ebx + ebp]
mov dword [esp + 0x24], ebx
add edi, ebx
mov ebx, edi
mov edi, dword [esp + 0x20]
nop
lea esi, [esi]
mov ecx, edx
add edx, 1
sub ecx, ebp
movzx ecx, byte [ecx + eax]
mov byte [edx - 1], cl
cmp ebx, edx
jne 0x4ce3f0
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x20], edi
jmp 0x4ce2dc