Function at 0x465df0
Capabilities:
Read file on windows
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x460
push ebp
mov ebp, dword [esp + 0x468]
push esi
push edi
mov di, cx
mov esi, eax
cmp di, word [ebp + 0x14]
jae 0x46652a
cmp dword [esp + 0x474], 0
je 0x46652a
mov eax, dword [ebp + 4]
test eax, eax
je 0x46652a
push ebx
lea ecx, [ebp + 0x20]
push ecx
xor ebx, ebx
push eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
call fcn.00486044
movzx edi, di
add esp, 8
xor eax, eax
cmp edi, 2
jl 0x465e79
mov eax, dword [ebp + 0x18]
lea ecx, [edi - 2]
shr ecx, 1
add eax, 0x2c
inc ecx
lea edx, [ecx + ecx]
mov dword [esp + 0x18], edx
lea ecx, [ecx]
mov edx, dword [eax - 0x18]
add dword [esp + 0x10], edx
mov edx, dword [eax]
add dword [esp + 0x14], edx
add eax, 0x30
sub ecx, 1
jne 0x465e60
mov eax, dword [esp + 0x18]
cmp eax, edi
jge 0x465e87
mov ecx, dword [ebp + 0x18]
lea eax, [eax + eax*2]
mov ebx, dword [ecx + eax*8 + 0x14]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
add edx, eax
add ebx, edx
je 0x465ea4
mov ecx, dword [ebp + 4]
push 1
push ebx
push ecx
call fcn.004853aa
add esp, 0xc
mov edx, dword [ebp + 0x18]
lea edi, [edi + edi*2]
add edi, edi
add edi, edi
add edi, edi
mov eax, dword [edi + edx + 0x14]
mov dword [esp + 0x1c], eax
add eax, 0xf
push eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x60], 0
call fcn.004836a3
add esp, 4
mov dword [esp + 0x58], eax
test eax, eax
je 0x465efb
test al, 0xf
je 0x465ee3
shr eax, 4
inc eax
shl eax, 4
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x5c]
push eax
push 0
push ecx
call fcn.00487bc0
add esp, 0xc
cmp dword [ebp + 0xc], 2
jne 0x465f19
mov edx, dword [ebp + 4]
push edx
push 0x100
lea eax, [esp + 0x78]
push 4
push eax
call fcn.00484992
add esp, 0x10
mov ecx, dword [ebp + 4]
mov edx, dword [ebp + 0x18]
mov eax, dword [edi + edx + 0x14]
push ecx
mov ecx, dword [esp + 0x60]
push eax
push 1
push ecx
call fcn.00484992
mov eax, dword [ebp + 0xc]
add esp, 0x10
sub eax, 0
je 0x465f67
sub eax, 1
je 0x465f56
sub eax, 1
jne 0x465f79
mov edx, dword [ebp + 0x18]
mov ebx, dword [edi + edx + 4]
imul ebx, dword [edi + edx]
lea eax, [edi + edx]
jmp 0x465f79
mov eax, dword [ebp + 0x18]
lea ecx, [edi + eax]
mov eax, dword [ecx + 4]
imul eax, dword [ecx]
lea ebx, [eax + eax*2]
jmp 0x465f79
mov ecx, dword [ebp + 0x18]
mov ebx, dword [edi + ecx + 4]
imul ebx, dword [edi + ecx]
lea eax, [edi + ecx]
add ebx, ebx
add ebx, ebx
lea edx, [ebx + 0xf]
push edx
mov dword [esp + 0x40], 0
call fcn.004836a3
add esp, 4
mov dword [esp + 0x38], eax
test eax, eax
je 0x465fb4
test al, 0xf
je 0x465fa0
shr eax, 4
inc eax
shl eax, 4
push ebx
push 0
push eax
mov dword [esp + 0x48], eax
call fcn.00487bc0
mov eax, dword [esp + 0x44]
add esp, 0xc
mov edx, dword [esp + 0x5c]
test edx, edx
je 0x4664fd
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x4664fd
push ecx
push edx
call fcn.00466540
cmp dword [ebp + 0xc], 2
je 0x466026
mov eax, esi
lea ecx, [esp + 0x40]
sub eax, ecx
mov dword [esp + 0x1c], eax
xor edx, edx
jmp 0x465ff4
mov eax, dword [esp + 0x1c]
lea ecx, [esp + edx + 0x40]
mov eax, dword [eax + ecx]
mov dword [ecx], 0
mov dword [esp + edx + 0x60], eax
test al, 1
jne 0x46601e
xor eax, eax
jmp 0x466010
shr dword [esp + edx + 0x60], 1
inc eax
test byte [esp + edx + 0x60], 1
je 0x466010
mov dword [ecx], eax
add edx, 4
cmp edx, 0x10
jl 0x465ff0
mov eax, dword [ebp + 0xc]
xor edx, edx
cmp eax, edx
jne 0x4663be
cmp dword [esp + 0x480], edx
jne 0x4661cd
mov eax, dword [ebp + 0x18]
lea ecx, [edi + eax]
mov eax, dword [ecx + 4]
imul eax, dword [ecx]
mov ebx, eax
lea ecx, [eax + eax]
lea eax, [eax + eax*2]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x18]
add eax, edi
cmp dword [eax + 4], edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edx
jle 0x4664c9
mov edx, dword [esp + 0x478]
mov dword [esp + 0x10], edx
xor edx, edx
cmp dword [eax], edx
jle 0x466188
mov eax, dword [esp + 0x3c]
mov edi, dword [esp + 0x20]
sub ebx, ecx
mov dword [esp + 0x30], ebx
mov ebx, dword [esp + 0x14]
sub edi, ecx
add eax, ecx
sub ebx, ecx
mov dword [esp + 0x24], edi
mov dword [esp + 0x50], ebx
jmp 0x4660b8
mov ebx, dword [esp + 0x50]
mov edi, dword [esp + 0x24]
cmp dword [esp + 0x484], 0x20
jne 0x466107
movzx edi, byte [eax + edi]
movzx ebx, byte [eax + ebx]
mov ecx, dword [esp + 0x4c]
shl edi, cl
mov ecx, dword [esp + 0x40]
shl ebx, cl
mov ecx, dword [esp + 0x30]
and edi, dword [esi + 0xc]
and ebx, dword [esi]
or edi, ebx
movzx ebx, byte [eax + ecx]
mov ecx, dword [esp + 0x44]
shl ebx, cl
mov ecx, dword [esp + 0x48]
and ebx, dword [esi + 4]
or edi, ebx
movzx ebx, byte [eax]
shl ebx, cl
mov ecx, dword [esp + 0x10]
and ebx, dword [esi + 8]
or edi, ebx
mov dword [ecx + edx*4], edi
jmp 0x466172
movzx ecx, byte [eax + edi]
shr cl, 4
movzx di, cl
mov ecx, dword [esp + 0x4c]
shl di, cl
movzx ecx, byte [eax + ebx]
and di, word [esi + 0xc]
shr cl, 4
movzx bx, cl
mov ecx, dword [esp + 0x40]
shl bx, cl
mov ecx, dword [esp + 0x30]
movzx ecx, byte [eax + ecx]
and bx, word [esi]
shr cl, 4
or di, bx
movzx bx, cl
mov ecx, dword [esp + 0x44]
shl bx, cl
movzx ecx, byte [eax]
and bx, word [esi + 4]
shr cl, 4
or di, bx
movzx bx, cl
mov ecx, dword [esp + 0x48]
shl bx, cl
mov ecx, dword [esp + 0x10]
and bx, word [esi + 8]
or di, bx
mov word [ecx + edx*2], di
mov ecx, dword [ebp + 0x18]
mov edi, dword [esp + 0x28]
inc edx
inc eax
cmp edx, dword [edi + ecx]
jl 0x4660b0
mov ecx, dword [esp + 0x1c]
mov eax, dword [ebp + 0x18]
mov eax, dword [edi + eax]
mov edx, dword [esp + 0x47c]
mov ebx, dword [esp + 0x2c]
add dword [esp + 0x10], edx
add dword [esp + 0x14], eax
add dword [esp + 0x20], eax
mov edx, dword [esp + 0x18]
add ebx, eax
add ecx, eax
mov eax, dword [ebp + 0x18]
inc edx
add eax, edi
cmp edx, dword [eax + 4]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edx
jl 0x466081
jmp 0x4664c9
mov ecx, dword [ebp + 0x18]
mov eax, dword [esp + 0x480]
mov ebx, dword [edi + ecx]
lea edx, [edi + ecx]
mov ecx, dword [eax + 4]
mov eax, dword [eax]
mov dword [esp + 0x14], ecx
imul ecx, ebx
add ecx, eax
mov dword [esp + 0x10], eax
mov eax, dword [edx + 4]
imul eax, ebx
lea ebx, [eax + ecx]
mov dword [esp + 0x20], ebx
lea ebx, [ecx + eax*2]
mov dword [esp + 0x18], ebx
lea ebx, [ecx + eax*2]
add ebx, eax
mov eax, dword [esp + 0x480]
mov eax, dword [eax + 8]
cmp eax, dword [edx]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ebx
jle 0x466224
mov edx, dword [ebp + 0x18]
mov eax, dword [edi + edx]
mov edx, dword [esp + 0x480]
mov dword [edx + 8], eax
mov edx, dword [edx + 0xc]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x18]
mov eax, dword [edi + eax + 4]
cmp edx, eax
jg 0x466242
mov eax, edx
mov edx, dword [esp + 0x480]
mov dword [edx + 0xc], eax
sub eax, dword [esp + 0x14]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x10]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x24]
test eax, eax
jle 0x4664c9
mov edx, dword [esp + 0x478]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
jmp 0x466280
xor edx, edx
cmp dword [esp + 0x1c], edx
jle 0x466389
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x3c]
add eax, ebp
mov edi, ebx
sub edi, ebp
mov ebp, dword [esp + 0x20]
sub ebp, dword [esp + 0x18]
sub ecx, dword [esp + 0x18]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x50], ecx
jmp 0x4662b8
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x50]
cmp dword [esp + 0x484], 0x20
jne 0x466303
movzx ebx, byte [ecx + eax]
movzx ebp, byte [eax + ebp]
mov ecx, dword [esp + 0x40]
shl ebx, cl
mov ecx, dword [esp + 0x44]
shl ebp, cl
mov ecx, dword [esp + 0x4c]
and ebx, dword [esi]
and ebp, dword [esi + 4]
or ebx, ebp
movzx ebp, byte [edi + eax]
shl ebp, cl
mov ecx, dword [esp + 0x48]
and ebp, dword [esi + 0xc]
or ebx, ebp
movzx ebp, byte [eax]
shl ebp, cl
mov ecx, dword [esp + 0x10]
and ebp, dword [esi + 8]
or ebx, ebp
mov dword [ecx + edx*4], ebx
jmp 0x46636a
movzx ecx, byte [ecx + eax]
shr cl, 4
movzx bx, cl
mov ecx, dword [esp + 0x40]
shl bx, cl
movzx ecx, byte [eax + ebp]
and bx, word [esi]
shr cl, 4
movzx bp, cl
mov ecx, dword [esp + 0x44]
shl bp, cl
movzx ecx, byte [edi + eax]
and bp, word [esi + 4]
shr cl, 4
or bx, bp
movzx bp, cl
mov ecx, dword [esp + 0x4c]
shl bp, cl
movzx ecx, byte [eax]
and bp, word [esi + 0xc]
shr cl, 4
or bx, bp
movzx bp, cl
mov ecx, dword [esp + 0x48]
shl bp, cl
mov ecx, dword [esp + 0x10]
and bp, word [esi + 8]
or bx, bp
mov word [ecx + edx*2], bx
inc edx
inc eax
cmp edx, dword [esp + 0x1c]
jl 0x4662b0
mov ebp, dword [esp + 0x474]
mov edi, dword [esp + 0x28]
mov ebx, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov eax, dword [ebp + 0x18]
mov eax, dword [edi + eax]
mov edx, dword [esp + 0x47c]
add dword [esp + 0x10], edx
add dword [esp + 0x20], eax
add dword [esp + 0x18], eax
add ecx, eax
add ebx, eax
sub dword [esp + 0x14], 1
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ebx
jne 0x466280
jmp 0x4664c9
cmp eax, 1
jne 0x4663ce
mov eax, dword [esp + 0x38]
cmp eax, edx
jmp 0x4664ff
cmp dword [esp + 0x484], 8
je 0x4663e3
mov eax, dword [esp + 0x38]
cmp eax, edx
jmp 0x4664ff
mov ecx, dword [esp + 0x480]
cmp ecx, edx
jne 0x466445
mov ecx, dword [ebp + 0x18]
xor ebx, ebx
cmp dword [edi + ecx + 4], ebx
lea eax, [edi + ecx]
mov dword [esp + 0x18], ebx
jle 0x4664c9
mov eax, dword [eax]
mov esi, dword [esp + 0x478]
lea ecx, [ecx]
mov edx, dword [esp + 0x3c]
push eax
add edx, ebx
push edx
push esi
call fcn.00487c40
mov eax, dword [ebp + 0x18]
mov edx, dword [esp + 0x24]
add esi, dword [esp + 0x488]
lea ecx, [edi + eax]
mov eax, dword [ecx]
inc edx
add esp, 0xc
add ebx, eax
cmp edx, dword [ecx + 4]
mov dword [esp + 0x18], edx
jl 0x466410
jmp 0x4664c9
mov edx, dword [ebp + 0x18]
mov eax, dword [edi + edx]
mov edx, dword [ecx + 4]
mov ebx, dword [ecx]
mov esi, eax
imul esi, edx
mov dword [esp + 0x14], edx
mov edx, dword [ecx + 8]
add esi, ebx
cmp edx, eax
mov dword [esp + 0x10], ebx
jle 0x46646c
mov eax, dword [ebp + 0x18]
mov edx, dword [edi + eax]
mov ebx, dword [ecx + 0xc]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 0x18]
mov eax, dword [edi + eax + 4]
cmp ebx, eax
jg 0x46647f
mov eax, ebx
sub edx, dword [esp + 0x10]
mov dword [ecx + 0xc], eax
sub eax, dword [esp + 0x14]
mov dword [esp + 0x24], edx
test eax, eax
jle 0x4664c9
mov ebx, dword [esp + 0x478]
mov dword [esp + 0x28], eax
lea ecx, [ecx]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x3c]
push ecx
add edx, esi
push edx
push ebx
call fcn.00487c40
mov eax, dword [ebp + 0x18]
add ebx, dword [esp + 0x488]
add esi, dword [edi + eax]
add esp, 0xc
sub dword [esp + 0x28], 1
jne 0x4664a0
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4664da
push eax
call fcn.004835c6
add esp, 4
mov eax, dword [esp + 0x58]
test eax, eax
je 0x4664eb
push eax
call fcn.004835c6
add esp, 4
pop ebx
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x460
ret 0x14
test eax, eax
je 0x46650a
push eax
call fcn.004835c6
add esp, 4
mov eax, dword [esp + 0x58]
test eax, eax
je 0x46651b
push eax
call fcn.004835c6
add esp, 4
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x460
ret 0x14
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x460
ret 0x14