Function at 0x482dd0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4942d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
push edi
mov edi, ecx
test esi, esi
mov dword [esp + 0x10], edi
jne 0x482e0b
push esi
push esi
push esi
push 2
call fcn.00486410
xor al, al
jmp 0x4830d6
mov ecx, edi
call fcn.00482340
mov ebx, dword [sym.imp.MSVCRT.dll_fseek]
push 2
or ebp, 0xffffffff
push 0
push esi
mov dword [edi + 8], ebp
mov dword [edi + 4], ebp
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_ftell]
push 0
push 0
push esi
mov edi, eax
call ebx
add esp, 0x1c
test edi, edi
jg 0x482e69
mov al, byte [esp + 0x38]
test al, al
je 0x482e51
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov ecx, dword [esp + 0x10]
push 0
push 0
push 0
push 0xd
call fcn.00486410
xor al, al
jmp 0x4830d6
mov al, byte [esp + 0x38]
push 0
lea ecx, [esp + 0x18]
mov byte [esp + 0x18], al
call fcn.0041ebe0
mov eax, dword [esp + 0x20]
mov dword [esp + 0x2c], 0
cmp eax, edi
jae 0x482e98
push 0
push edi
lea ecx, [esp + 0x1c]
call fcn.0041ecf0
lea ecx, [edi + 1]
push ecx
call sub.MFC42u.DLL_operatornew
push esi
mov ebx, eax
push 1
push edi
push ebx
mov dword [esp + 0x48], ebx
mov byte [ebx], 0
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x14
cmp eax, 1
mov al, byte [esp + 0x38]
je 0x482eff
test al, al
je 0x482ecf
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
push ebx
call sub.MFC42u.DLL_operatordelete
mov ecx, dword [esp + 0x14]
add esp, 4
push 0
push 0
push 0
push 2
call fcn.00486410
push 1
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], ebp
call fcn.0041ebe0
xor al, al
jmp 0x4830d6
test al, al
je 0x482f0d
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov ebp, dword [esp + 0x34]
mov esi, ebx
mov byte [edi + ebp], 0
mov al, byte [ebp]
test al, al
je 0x483012
mov al, byte [ebx]
cmp al, 0xa
jne 0x482f75
mov edi, ebx
sub edi, esi
inc edi
je 0x482f6d
mov edx, dword [esp + 0x1c]
push 0
lea ecx, [esp + 0x18]
lea ebp, [edx + edi]
push ebp
call fcn.0041ecf0
test al, al
je 0x482f6d
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ecx, edi
lea edi, [edx + eax]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x1c], ebp
mov byte [ecx + ebp], 0
inc ebx
mov esi, ebx
jmp 0x483005
cmp al, 0xd
jne 0x483004
mov edi, ebx
sub edi, esi
test edi, edi
jle 0x482fc5
jbe 0x482fc5
mov edx, dword [esp + 0x1c]
push 0
lea ecx, [esp + 0x18]
lea ebp, [edx + edi]
push ebp
call fcn.0041ecf0
test al, al
je 0x482fc5
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ecx, edi
lea edi, [edx + eax]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x1c], ebp
mov byte [ecx + ebp], 0
mov edx, dword [esp + 0x1c]
push 0
lea ecx, [esp + 0x18]
lea esi, [edx + 1]
push esi
call fcn.0041ecf0
test al, al
je 0x482ff3
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add ecx, eax
push esi
mov byte [ecx], 0xa
lea ecx, [esp + 0x18]
call fcn.0041ecd0
cmp byte [ebx + 1], 0xa
jne 0x482f6d
add ebx, 2
mov esi, ebx
jmp 0x483005
inc ebx
cmp byte [ebx], 0
jne 0x482f22
mov ebp, dword [esp + 0x34]
mov edi, ebx
sub edi, esi
je 0x48305a
test edi, edi
jbe 0x48305a
mov edx, dword [esp + 0x1c]
push 0
lea ecx, [esp + 0x18]
lea ebx, [edx + edi]
push ebx
call fcn.0041ecf0
test al, al
je 0x48305a
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ecx, edi
lea edi, [edx + eax]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x1c], ebx
mov byte [ecx + ebx], 0
push ebp
call sub.MFC42u.DLL_operatordelete
mov eax, dword [esp + 0x1c]
add esp, 4
test eax, eax
jne 0x483070
mov eax, 0x496cd4
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x3c]
push ecx
push 0
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 8]
mov al, byte [esi + 0x38]
mov ecx, dword [esp + 0x18]
test al, al
je 0x4830b4
test ecx, ecx
je 0x4830b0
mov al, byte [ecx - 1]
test al, al
je 0x4830a6
cmp al, 0xff
je 0x4830a6
dec al
mov byte [ecx - 1], al
xor al, al
jmp 0x4830d6
dec ecx
push ecx
call sub.MFC42u.DLL_operatordelete
add esp, 4
xor al, al
jmp 0x4830d6
test ecx, ecx
je 0x4830d4
mov al, byte [ecx - 1]
test al, al
je 0x4830ca
cmp al, 0xff
je 0x4830ca
dec al
mov byte [ecx - 1], al
jmp 0x4830d4
dec ecx
push ecx
call sub.MFC42u.DLL_operatordelete
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc