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

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x5c
xor edx, edx
push ebx
push ebp
push esi
cmp eax, edx
push edi
je 0x4debf2
mov ecx, dword [esp + 0x74]
cmp ecx, edx
je 0x4debf2
cmp word [eax], dx
mov edi, dword [ecx + 0x10]
mov ebx, dword [ecx + 0x14]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edx
jle 0x4deba0
jmp 0x4de89e
mov eax, dword [esp + 0x70]
mov ecx, dword [eax + 0xc]
mov edx, dword [esp + 0x18]
mov eax, dword [eax + 4]
movsx ecx, word [ecx + edx*2]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x1c], ecx
lea ecx, [eax + ecx*8]
lea edx, [eax + edx*8]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x20], edx
mov eax, dword [edx]
mov dword [esp + 0x24], eax
mov ebp, dword [edx + 4]
mov dword [esp + 0x28], ebp
mov esi, dword [ecx]
mov edx, dword [ecx + 4]
mov ecx, edi
shl edx, cl
shl eax, cl
shl ebp, cl
shl esi, cl
mov ecx, dword [esp + 0x70]
sub edx, ebx
mov dword [esp + 0x38], edx
sub eax, ebx
mov edx, dword [ecx + 8]
mov ecx, dword [esp + 0x14]
sub ebp, ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x30], ebp
lea ebp, [edx + ecx]
mov dword [esp + 0x2c], eax
sub esi, ebx
mov cl, byte [ebp]
mov dword [esp + 0x34], esi
mov esi, dword [esp + 0x20]
and ecx, 3
cmp ecx, 2
je 0x4debe5
test ecx, ecx
jne 0x4de975
mov ecx, dword [esp + 0x1c]
mov dl, byte [edx + ecx]
and dl, 3
cmp dl, 1
jne 0x4de94f
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x10]
sub eax, 8
mov dword [esp + 0x28], ecx
mov dword [esp + 0x10], eax
jmp 0x4de971
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
add eax, edx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x28]
add eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x28], eax
sub esi, 8
dec ebp
mov edx, dword [esp + 0x78]
mov ecx, dword [esp + 0x74]
lea eax, [esp + 0x24]
push edx
push eax
call dword [ecx]
add esp, 8
test eax, eax
jne 0x4debf7
mov edx, dword [esp + 0x10]
cmp esi, edx
jae 0x4deb67
jmp 0x4de9a2
mov edx, dword [esp + 0x10]
mov al, byte [ebp + 1]
add esi, 8
inc ebp
and eax, 3
sub eax, 0
je 0x4dea89
dec eax
je 0x4dea51
lea eax, [esi + 8]
cmp eax, edx
ja 0x4debe5
mov cl, byte [ebp + 1]
and cl, 3
cmp cl, 2
jne 0x4debe5
mov eax, dword [esi]
add esi, 0x10
mov ecx, edi
add ebp, 2
shl eax, cl
sub eax, ebx
mov dword [esp + 0x4c], eax
mov eax, dword [esi - 0xc]
shl eax, cl
sub eax, ebx
mov dword [esp + 0x50], eax
mov eax, dword [esi - 8]
shl eax, cl
sub eax, ebx
mov dword [esp + 0x44], eax
mov eax, dword [esi - 4]
shl eax, cl
sub eax, ebx
cmp esi, edx
mov dword [esp + 0x48], eax
ja 0x4debaa
mov edx, dword [esi]
mov eax, dword [esi + 4]
shl edx, cl
shl eax, cl
mov ecx, dword [esp + 0x78]
push ecx
lea ecx, [esp + 0x50]
sub edx, ebx
sub eax, ebx
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], eax
lea edx, [esp + 0x58]
lea eax, [esp + 0x48]
push edx
mov edx, dword [esp + 0x7c]
push eax
push ecx
call dword [edx + 0xc]
add esp, 0x10
test eax, eax
jne 0x4debf7
jmp 0x4deb5d
mov eax, dword [esi]
mov edx, dword [esi + 4]
mov ecx, edi
shl eax, cl
shl edx, cl
lea ecx, [esp + 0x5c]
sub eax, ebx
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x78]
sub edx, ebx
push eax
mov dword [esp + 0x64], edx
mov edx, dword [esp + 0x78]
push ecx
call dword [edx + 4]
add esp, 8
test eax, eax
jne 0x4debf7
jmp 0x4deb5d
mov eax, dword [esi]
mov ecx, edi
shl eax, cl
sub eax, ebx
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 4]
shl eax, cl
sub eax, ebx
mov dword [esp + 0x30], eax
cmp esi, edx
jae 0x4debca
mov dl, byte [ebp + 1]
mov eax, dword [esi + 8]
add esi, 8
inc ebp
mov dword [esp + 0x14], ebp
mov ecx, edi
mov ebp, dword [esi + 4]
and edx, 3
shl eax, cl
shl ebp, cl
sub eax, ebx
sub ebp, ebx
cmp edx, 1
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ebp
je 0x4deb38
test edx, edx
jne 0x4debe5
mov ecx, dword [esp + 0x2c]
add eax, ecx
lea ecx, [esp + 0x64]
cdq
sub eax, edx
mov edx, dword [esp + 0x30]
sar eax, 1
mov dword [esp + 0x64], eax
lea eax, [edx + ebp]
cdq
sub eax, edx
lea edx, [esp + 0x2c]
sar eax, 1
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x78]
push eax
mov eax, dword [esp + 0x78]
push ecx
push edx
call dword [eax + 8]
add esp, 0xc
test eax, eax
jne 0x4debf7
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x2c], ecx
jmp 0x4deaa0
mov eax, dword [esp + 0x78]
lea ecx, [esp + 0x3c]
push eax
mov eax, dword [esp + 0x78]
lea edx, [esp + 0x30]
push ecx
push edx
call dword [eax + 8]
add esp, 0xc
test eax, eax
jne 0x4debf7
mov ebp, dword [esp + 0x14]
cmp esi, dword [esp + 0x10]
jb 0x4de99e
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x74]
lea edx, [esp + 0x24]
push ecx
push edx
call dword [eax + 4]
add esp, 8
test eax, eax
jne 0x4debf7
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x18]
inc ecx
mov dword [esp + 0x14], ecx
inc eax
movsx ecx, word [edx]
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x4de89a
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x5c
ret
mov ecx, dword [esp + 0x78]
lea edx, [esp + 0x24]
push ecx
lea eax, [esp + 0x48]
push edx
mov edx, dword [esp + 0x7c]
lea ecx, [esp + 0x54]
push eax
push ecx
call dword [edx + 0xc]
add esp, 0x10
jmp 0x4deb7b
mov eax, dword [esp + 0x78]
lea ecx, [esp + 0x24]
push eax
mov eax, dword [esp + 0x78]
lea edx, [esp + 0x30]
push ecx
push edx
call dword [eax + 8]
add esp, 0xc
jmp 0x4deb7b
pop edi
pop esi
pop ebp
mov eax, 0x14
pop ebx
add esp, 0x5c
ret
mov eax, 6
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret