Function at 0x460410
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 0x46055f
mov edi, edi
mov ebx, ebp
call fcn.004603c0
push ebp
mov esi, eax
mov edi, edx
call fcn.00460340
mov ebx, eax
and ebx, edx
or ecx, 0xffffffff
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], edi
cmp ebx, ecx
je 0x4604e2
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.00464690
mov ecx, dword [esp + 0x5c]
add ecx, 0x30
mov esi, eax
call fcn.004646e0
mov edx, dword [esp + 0x24]
jmp 0x46052a
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.00464690
mov ecx, dword [esp + 0x5c]
add ecx, 0x30
mov esi, eax
call fcn.004646e0
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 0x460460
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 0x460596
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 0x4605a0
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 0x460809
mov ebx, dword [esp + 0x6c]
push ebx
xor ebp, ebp
call fcn.0045f7b0
push ebp
push edi
push edx
push eax
call fcn.004746e0
push ebp
push edi
mov esi, edx
push esi
push eax
mov dword [esp + 0x70], eax
call fcn.00474670
push edx
push eax
push ebp
push edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edx
call fcn.004746e0
mov ecx, dword [esp + 0x60]
sub ecx, eax
sbb esi, edx
or ecx, esi
je 0x460626
add dword [esp + 0x20], 1
adc dword [esp + 0x24], ebp
mov ecx, dword [esp + 0x20]
imul ecx, edi
push ecx
call sub.mfc90u.dll_new__
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
je 0x460809
mov ebp, eax
test ebx, ebx
je 0x460809
mov edx, dword [ebx + 0x44]
mov eax, dword [ebx + 0x30]
mov esi, dword [edx]
mov dword [esp + 0x34], eax
jmp 0x460660
mov ecx, dword [ebx + 0x44]
mov ebx, dword [ebx + 0x30]
mov dword [esp + 0x40], ecx
test eax, eax
je 0x460672
cmp eax, ebx
je 0x460680
mov ebx, dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
call ebx
mov eax, dword [esp + 0x34]
jmp 0x460686
mov ebx, dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp esi, dword [esp + 0x40]
je 0x46077c
test eax, eax
jne 0x46075a
call ebx
xor eax, eax
cmp esi, dword [eax + 0x14]
jne 0x4606a3
call ebx
xor ebx, ebx
cmp dword [esi + 0x1c], ebx
jb 0x460730
ja 0x4606b5
cmp dword [esi + 0x18], ebx
jbe 0x460730
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.004746e0
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 0x460765
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 0x460730
inc ebx
mov eax, ebx
cdq
add ebp, edi
cmp edx, dword [esi + 0x1c]
jb 0x4606b9
ja 0x460730
cmp eax, dword [esi + 0x18]
jb 0x4606b9
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x460761
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
cmp esi, dword [eax + 0x14]
jne 0x46074b
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov esi, dword [esi]
mov ebx, dword [esp + 0x6c]
mov eax, dword [esp + 0x34]
jmp 0x460660
mov eax, dword [eax]
jmp 0x46069c
mov eax, dword [eax]
jmp 0x460740
mov eax, dword [esp + 0x14]
push eax
call sub.mfc90u.dll_delete__
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 0x46079d
mov ecx, dword [esp + 0x14]
push ecx
call sub.mfc90u.dll_delete__
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 0x4607fc
mov ebx, dword [esp + 0x28]
jg 0x4607b3
test ebx, ebx
jbe 0x4607fc
mov edx, dword [esp + 0x60]
lea ebp, [edx + esi]
lea eax, [esi + 0x1a]
cmp eax, ebp
ja 0x4607fc
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x4607fc
test eax, eax
je 0x4607fc
cmp word [esi + 4], 0
je 0x4607fc
mov ecx, dword [esp + 0x68]
push ecx
mov ecx, dword [esp + 0x60]
push esi
call fcn.00460f70
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 0x4607ba
jl 0x4607fc
test ebx, ebx
ja 0x4607ba
mov edx, dword [esp + 0x14]
push edx
call sub.mfc90u.dll_delete__
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 0x14