Function at 0x460400
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x38
mov eax, dword [esp + 0x40]
mov edx, dword [eax + 0x28]
mov ecx, dword [esp + 0x4c]
mov dword [ecx + 0x50], edx
mov edx, dword [eax + 0x2c]
mov dword [ecx + 0x54], edx
mov edx, dword [eax + 0x30]
mov dword [ecx + 0x58], edx
mov edx, dword [eax + 0x34]
push ebx
mov dword [ecx + 0x5c], edx
push ebp
movzx ebp, word [eax + 0x20]
push esi
mov esi, dword [eax + 0x10]
xor edx, edx
mov dword [esp + 0xc], esi
mov esi, dword [eax + 0x14]
add ebp, eax
push edi
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], esi
cmp byte [ebp], dl
je 0x46054f
mov edi, edi
mov ebx, ebp
call fcn.004603b0
push ebp
mov esi, eax
mov edi, edx
call fcn.00460330
mov ebx, eax
and ebx, edx
or ecx, 0xffffffff
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], edi
cmp ebx, ecx
je 0x4604d2
mov ecx, dword [esp + 0x18]
add ecx, eax
mov eax, dword [esp + 0x1c]
adc eax, edx
add esi, dword [esp + 0x10]
mov dword [esp + 0x1c], eax
adc edi, dword [esp + 0x14]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x5c]
add eax, 0x30
mov eax, dword [eax + 0x14]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x30], ecx
mov ecx, dword [eax + 4]
push ecx
mov ebx, esi
push eax
lea esi, [esp + 0x38]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], edi
mov dword [esp + 0x2c], eax
call fcn.0045e860
mov ecx, dword [esp + 0x5c]
add ecx, 0x30
mov esi, eax
call fcn.0045e8b0
mov edx, dword [esp + 0x24]
jmp 0x46051a
add esi, dword [esp + 0x10]
mov eax, dword [esp + 0x5c]
adc edi, dword [esp + 0x14]
add eax, 0x30
mov eax, dword [eax + 0x14]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ecx
mov ecx, dword [eax + 4]
push ecx
mov ebx, esi
push eax
lea esi, [esp + 0x38]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], edi
mov dword [esp + 0x34], eax
call fcn.0045e860
mov ecx, dword [esp + 0x5c]
add ecx, 0x30
mov esi, eax
call fcn.0045e8b0
mov edx, dword [esp + 0x2c]
mov dword [edx + 4], esi
mov eax, dword [esi + 4]
mov dword [eax], esi
movzx eax, byte [ebp]
mov ecx, eax
and eax, 0xf
shr ecx, 4
add eax, ebp
cmp byte [eax + ecx + 1], 0
lea ebp, [eax + ecx + 1]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], edi
jne 0x460450
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x50]
mov esi, dword [eax + 0x18]
sub esi, dword [eax + 0x10]
mov edx, dword [esp + 0x58]
inc esi
add dword [edx + 0x20], esi
cmp byte [esp + 0x54], 0
je 0x460586
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edx
mov edx, dword [eax + 0x3c]
mov dword [esp + 0xc], edx
mov eax, dword [eax + 0x38]
mov dword [esp + 8], eax
jmp 0x460590
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret 0x14
sub esp, 0x48
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x54]
push ebx
push ebp
push esi
push edi
mov edi, dword [eax + 0x44]
xor eax, eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x28], eax
or eax, ecx
mov dword [esp + 0x2c], ecx
je 0x4607f9
mov ebx, dword [esp + 0x6c]
push ebx
xor ebp, ebp
call fcn.0045f790
push ebp
push edi
push edx
push eax
call fcn.00474250
push ebp
push edi
mov esi, edx
push esi
push eax
mov dword [esp + 0x70], eax
call fcn.004741e0
push edx
push eax
push ebp
push edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edx
call fcn.00474250
mov ecx, dword [esp + 0x60]
sub ecx, eax
sbb esi, edx
or ecx, esi
je 0x460616
add dword [esp + 0x20], 1
adc dword [esp + 0x24], ebp
mov ecx, dword [esp + 0x20]
imul ecx, edi
push ecx
call fcn.00472d56
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
je 0x4607f9
mov ebp, eax
test ebx, ebx
je 0x4607f9
mov edx, dword [ebx + 0x44]
mov eax, dword [ebx + 0x30]
mov esi, dword [edx]
mov dword [esp + 0x34], eax
jmp 0x460650
mov ecx, dword [ebx + 0x44]
mov ebx, dword [ebx + 0x30]
mov dword [esp + 0x40], ecx
test eax, eax
je 0x460662
cmp eax, ebx
je 0x460670
mov ebx, dword [0x47c2fc]
call ebx
mov eax, dword [esp + 0x34]
jmp 0x460676
mov ebx, dword [0x47c2fc]
cmp esi, dword [esp + 0x40]
je 0x46076c
test eax, eax
jne 0x46074a
call ebx
xor eax, eax
cmp esi, dword [eax + 0x14]
jne 0x460693
call ebx
xor ebx, ebx
cmp dword [esi + 0x1c], ebx
jb 0x460720
ja 0x4606a5
cmp dword [esi + 0x18], ebx
jbe 0x460720
xor eax, eax
xor edx, edx
mov dword [esp + 0x54], 0
mov ecx, dword [esi + 8]
add ecx, eax
mov eax, dword [esi + 0xc]
adc eax, edx
mov dword [esp + 0x18], eax
xor eax, eax
push eax
mov eax, dword [esp + 0x1c]
push edi
push eax
push ecx
call fcn.00474250
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x50], edx
lea edx, [esp + 0x44]
push edx
mov edx, dword [ecx + 0xc]
mov dword [esp + 0x50], eax
lea eax, [esp + 0x20]
push eax
push edi
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x460755
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
add eax, 0xffffffff
adc ecx, 0xffffffff
mov dword [esp + 0x20], eax
or eax, ecx
mov dword [esp + 0x24], ecx
je 0x460720
inc ebx
mov eax, ebx
cdq
add ebp, edi
cmp edx, dword [esi + 0x1c]
jb 0x4606a9
ja 0x460720
cmp eax, dword [esi + 0x18]
jb 0x4606a9
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x460751
call dword [0x47c2fc]
xor eax, eax
cmp esi, dword [eax + 0x14]
jne 0x46073b
call dword [0x47c2fc]
mov esi, dword [esi]
mov ebx, dword [esp + 0x6c]
mov eax, dword [esp + 0x34]
jmp 0x460650
mov eax, dword [eax]
jmp 0x46068c
mov eax, dword [eax]
jmp 0x460730
mov eax, dword [esp + 0x14]
push eax
call fcn.00472d5c
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 0x14
mov eax, dword [esp + 0x20]
or eax, dword [esp + 0x24]
je 0x46078d
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00472d5c
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 0x14
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x14]
test edi, edi
jl 0x4607ec
mov ebx, dword [esp + 0x28]
jg 0x4607a3
test ebx, ebx
jbe 0x4607ec
mov edx, dword [esp + 0x60]
lea ebp, [edx + esi]
lea eax, [esi + 0x1a]
cmp eax, ebp
ja 0x4607ec
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x4607ec
test eax, eax
je 0x4607ec
cmp word [esi + 4], 0
je 0x4607ec
mov ecx, dword [esp + 0x68]
push ecx
mov ecx, dword [esp + 0x60]
push esi
call fcn.00460f60
movzx eax, word [esi + 4]
movzx ecx, ax
mov eax, ecx
cdq
sub ebx, eax
sbb edi, edx
add esi, ecx
test edi, edi
jg 0x4607aa
jl 0x4607ec
test ebx, ebx
ja 0x4607aa
mov edx, dword [esp + 0x14]
push edx
call fcn.00472d5c
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 0x14