Function at 0x462860
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4a58e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
mov ebx, dword [esp + 0x34]
push ebp
push esi
push edi
push ebx
lea ecx, [esp + 0x14]
call fcn.0040f9a0
xor eax, eax
mov word [esp + 0x42], ax
mov word [esp + 0x40], ax
lea ecx, [esp + 0x10]
mov dword [esp + 0x34], eax
call fcn.00440460
mov ebp, dword [esp + 0x3c]
push 0x2e
mov eax, dword [ebp]
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
mov edi, eax
add esp, 8
mov esi, 0x4c2398
mov ecx, edi
mov al, byte [ecx]
mov dl, al
cmp al, byte [esi]
jne 0x4628e3
test dl, dl
je 0x4628df
mov al, byte [ecx + 1]
mov dl, al
cmp al, byte [esi + 1]
jne 0x4628e3
add ecx, 2
add esi, 2
test dl, dl
jne 0x4628bf
xor ecx, ecx
jmp 0x4628e8
sbb ecx, ecx
sbb ecx, 0xffffffff
test ecx, ecx
je 0x462940
mov esi, 0x4c2394
mov ecx, edi
mov al, byte [ecx]
mov dl, al
cmp al, byte [esi]
jne 0x462917
test dl, dl
je 0x462913
mov al, byte [ecx + 1]
mov dl, al
cmp al, byte [esi + 1]
jne 0x462917
add ecx, 2
add esi, 2
test dl, dl
jne 0x4628f3
xor ecx, ecx
jmp 0x46291c
sbb ecx, ecx
sbb ecx, 0xffffffff
test ecx, ecx
je 0x462940
mov ecx, dword [ebp]
push ebx
push ecx
call fcn.0048b560
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
push edi
push 0x4c2378
call fcn.00443600
mov eax, dword [ebp]
push 0x4b1c88
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x46297b
mov edx, dword [ebp]
push edx
push 1
push 0x4c2364
push 0x4dbf68
call fcn.00441210
add esp, 0x10
push edi
call dword [sym.imp.MSVCRT.dll_fgetc]
add esp, 4
cmp eax, 0xffffffff
je 0x462ad0
push edi
push eax
call dword [sym.imp.MSVCRT.dll_ungetc]
add esp, 8
cmp eax, 0xffffffff
je 0x462ad0
push 0
push 0x38
call fcn.00442a90
push edi
mov esi, eax
push 1
push 0x38
push esi
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x18
cmp eax, 1
je 0x4629d7
push 0
push 2
push 0x4b9c4c
push 0x4dbf58
call fcn.00441210
add esp, 0x10
mov eax, dword [esi + 0x28]
lea ebp, [esi + 0x28]
push eax
push edi
call fcn.00442d70
add esp, 8
mov ebx, eax
mov ecx, ebp
mov dword [ebp], 0
push ebx
call fcn.00443000
push ebx
call fcn.00442aa0
add esp, 4
lea ecx, [esi + 0x2c]
push 0x430590
push edi
call fcn.00440340
push 0x43b450
push edi
lea ecx, [esi + 0x30]
call fcn.00440340
push 0x43b450
push edi
lea ecx, [esi + 0x34]
call fcn.00440340
push 0x4333a0
push edi
lea ecx, [esi + 0xc]
call fcn.00440340
push 0x4333a0
push edi
lea ecx, [esi + 0x10]
call fcn.00440340
mov eax, dword [esi + 4]
test eax, eax
je 0x462a5a
push edi
call fcn.00462af0
add esp, 4
mov dword [esi + 4], eax
mov ecx, dword [esp + 0x10]
cmp dword [ecx], 0
jne 0x462a75
mov dword [esi], esi
mov edx, dword [esp + 0x10]
mov dword [edx], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], esi
jmp 0x462ab9
mov eax, dword [esp + 0x1c]
mov dword [esi], eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x462a99
mov dword [eax], esi
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x14], eax
cmp eax, dword [ecx]
jne 0x462ab9
mov dword [ecx], esi
jmp 0x462ab9
mov ecx, dword [esp + 0x14]
mov dword [ecx], esi
mov al, byte [esp + 0x20]
test al, al
je 0x462aad
mov edx, dword [esp + 0x10]
mov dword [edx], esi
mov al, byte [esp + 0x21]
test al, al
je 0x462ab9
mov dword [esp + 0x24], esi
push edi
mov dword [esp + 0x1c], esi
call dword [sym.imp.MSVCRT.dll_fgetc]
add esp, 4
cmp eax, 0xffffffff
jne 0x46298e
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
mov ecx, dword [esp + 0x30]
add esp, 4
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret