Function at 0x482ad0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4941a8
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 0x482b0b
push esi
push esi
push esi
push 2
call fcn.00486110
xor al, al
jmp 0x482dd6
mov ecx, edi
call fcn.00482050
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 0x482b69
mov al, byte [esp + 0x38]
test al, al
je 0x482b51
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.00486110
xor al, al
jmp 0x482dd6
mov al, byte [esp + 0x38]
push 0
lea ecx, [esp + 0x18]
mov byte [esp + 0x18], al
call fcn.0041ed70
mov eax, dword [esp + 0x20]
mov dword [esp + 0x2c], 0
cmp eax, edi
jae 0x482b98
push 0
push edi
lea ecx, [esp + 0x1c]
call fcn.0041ee80
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 0x482bff
test al, al
je 0x482bcf
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.00486110
push 1
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], ebp
call fcn.0041ed70
xor al, al
jmp 0x482dd6
test al, al
je 0x482c0d
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 0x482d12
mov al, byte [ebx]
cmp al, 0xa
jne 0x482c75
mov edi, ebx
sub edi, esi
inc edi
je 0x482c6d
mov edx, dword [esp + 0x1c]
push 0
lea ecx, [esp + 0x18]
lea ebp, [edx + edi]
push ebp
call fcn.0041ee80
test al, al
je 0x482c6d
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 0x482d05
cmp al, 0xd
jne 0x482d04
mov edi, ebx
sub edi, esi
test edi, edi
jle 0x482cc5
jbe 0x482cc5
mov edx, dword [esp + 0x1c]
push 0
lea ecx, [esp + 0x18]
lea ebp, [edx + edi]
push ebp
call fcn.0041ee80
test al, al
je 0x482cc5
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.0041ee80
test al, al
je 0x482cf3
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.0041ee60
cmp byte [ebx + 1], 0xa
jne 0x482c6d
add ebx, 2
mov esi, ebx
jmp 0x482d05
inc ebx
cmp byte [ebx], 0
jne 0x482c22
mov ebp, dword [esp + 0x34]
mov edi, ebx
sub edi, esi
je 0x482d5a
test edi, edi
jbe 0x482d5a
mov edx, dword [esp + 0x1c]
push 0
lea ecx, [esp + 0x18]
lea ebx, [edx + edi]
push ebx
call fcn.0041ee80
test al, al
je 0x482d5a
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 0x482d70
mov eax, 0x496d4c
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 0x482db4
test ecx, ecx
je 0x482db0
mov al, byte [ecx - 1]
test al, al
je 0x482da6
cmp al, 0xff
je 0x482da6
dec al
mov byte [ecx - 1], al
xor al, al
jmp 0x482dd6
dec ecx
push ecx
call sub.MFC42u.DLL_operatordelete
add esp, 4
xor al, al
jmp 0x482dd6
test ecx, ecx
je 0x482dd4
mov al, byte [ecx - 1]
test al, al
je 0x482dca
cmp al, 0xff
je 0x482dca
dec al
mov byte [ecx - 1], al
jmp 0x482dd4
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