Function at 0x4c0040
Capabilities:
Read file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x547e08
push eax
mov eax, 0x2004
mov dword fs:[0], esp
call fcn.005322e0
mov eax, dword [esp + 0x2014]
push ebx
push esi
xor esi, esi
cmp eax, esi
mov ebx, ecx
je 0x4c06a2
push ebp
push edi
push esi
push eax
mov eax, dword [0x67a8cc]
push eax
call dword [sym.imp.MSVCRT.dll_fseek]
mov ecx, dword [0x67a8cc]
push ecx
push 1
push 0x388
push ebx
call dword [sym.imp.MSVCRT.dll_fread]
mov ecx, 0x40
xor eax, eax
lea edi, [ebx + 0x180]
mov dword [ebx + 0x158], esi
mov dword [ebx + 0x15c], esi
mov dword [ebx + 0x16c], esi
mov dword [ebx + 0x170], esi
mov dword [ebx + 0x174], esi
mov dword [ebx + 0x178], esi
mov dword [ebx + 0x380], esi
mov dword [ebx + 0x384], esi
push 4
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [ebx + 0x280]
rep stosd dword es:[edi], eax
call fcn.004784b0
add esp, 0x20
cmp eax, esi
je 0x4c00fc
mov ecx, eax
call fcn.004c4950
jmp 0x4c00fe
xor eax, eax
mov edi, dword [ebx + 0x104]
mov dword [ebx + 0x17c], eax
cmp edi, esi
je 0x4c0126
push 0x14
call sub.MFC42u.DLL_operatornew
add esp, 4
mov ecx, eax
mov dword [ebx + 0x104], eax
push edi
call fcn.004bdd30
test byte [ebx], 0x80
je 0x4c01da
cmp dword [ebx + 0x124], esi
je 0x4c01da
push 0xc
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, esi
mov dword [esp + 0x201c], esi
je 0x4c0164
mov edx, dword [ebx + 0x124]
mov ecx, eax
push edx
call fcn.004bf820
jmp 0x4c0166
xor eax, eax
mov ecx, dword [ebx]
mov dword [ebx + 0x124], eax
lea edi, [ebx + 0x154]
lea eax, [ebx + 4]
push edi
and ecx, 1
push eax
push ecx
mov dword [esp + 0x2028], 0xffffffff
call fcn.004bf7c0
mov ecx, eax
call fcn.004bf6a0
xor ebp, ebp
cmp eax, esi
mov dword [ebx + 0x150], eax
jle 0x4c01ec
mov edx, dword [edi]
mov eax, esi
add eax, edx
mov ecx, dword [eax]
or ecx, 0x80000000
mov dword [eax], ecx
mov eax, dword [ebx + 0x104]
test eax, eax
je 0x4c01c5
mov eax, dword [edi]
mov ecx, esi
add ecx, eax
call fcn.004be0a0
mov eax, dword [ebx + 0x150]
inc ebp
add esi, 0x110
cmp ebp, eax
jl 0x4c01a0
xor esi, esi
jmp 0x4c01ec
mov dword [ebx + 0x124], esi
mov dword [ebx + 0x150], esi
mov dword [ebx + 0x154], esi
mov eax, dword [ebx]
test ah, 0x10
je 0x4c024e
cmp dword [ebx + 0x138], esi
je 0x4c024e
push 0x28
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, esi
mov dword [esp + 0x201c], 1
je 0x4c0239
mov edx, dword [ebx + 0x138]
mov ecx, eax
push edx
call fcn.004bf9d0
mov dword [esp + 0x201c], 0xffffffff
mov dword [ebx + 0x138], eax
jmp 0x4c0254
xor eax, eax
mov dword [esp + 0x201c], 0xffffffff
mov dword [ebx + 0x138], eax
jmp 0x4c0254
mov dword [ebx + 0x138], esi
cmp dword [ebx + 0x108], esi
jle 0x4c0338
mov eax, dword [ebx + 0x10c]
cmp eax, esi
je 0x4c0338
push esi
push eax
mov eax, dword [0x67a8cc]
push eax
call dword [sym.imp.MSVCRT.dll_fseek]
mov edx, dword [ebx + 0x108]
mov ecx, 0x3ff
xor eax, eax
lea edi, [esp + 0x24]
mov dword [esp + 0x20], esi
rep stosd dword es:[edi], eax
mov ecx, dword [0x67a8cc]
lea eax, [esp + 0x20]
push ecx
push edx
push 4
push eax
call dword [sym.imp.MSVCRT.dll_fread]
mov eax, dword [ebx + 0x150]
mov edi, dword [ebx + 0x108]
add eax, edi
mov ecx, eax
shl ecx, 4
add ecx, eax
shl ecx, 4
push ecx
call fcn.00478e60
mov dword [ebx + 0x10c], eax
mov eax, dword [ebx + 0x108]
add esp, 0x20
xor ebp, ebp
test eax, eax
jle 0x4c0336
xor esi, esi
lea edi, [esp + 0x14]
mov edx, dword [edi]
mov eax, dword [ebx + 0x10c]
mov ecx, esi
push 0xffffffffffffffff
push edx
add ecx, eax
call fcn.004be020
mov edx, dword [ebx + 0x10c]
mov eax, esi
add eax, edx
mov ecx, dword [eax]
or ecx, 0x80000000
mov dword [eax], ecx
mov eax, dword [ebx + 0x104]
test eax, eax
je 0x4c0322
mov eax, dword [ebx + 0x10c]
mov ecx, esi
add ecx, eax
call fcn.004be0a0
mov eax, dword [ebx + 0x108]
inc ebp
add edi, 4
add esi, 0x110
cmp ebp, eax
jl 0x4c02e1
xor esi, esi
mov eax, dword [ebx + 0x150]
cmp eax, esi
jle 0x4c03a0
mov edx, dword [ebx + 0x10c]
cmp edx, esi
je 0x4c0380
mov ecx, eax
mov esi, dword [ebx + 0x154]
shl ecx, 4
add ecx, eax
mov eax, dword [ebx + 0x108]
mov edi, eax
shl edi, 4
shl ecx, 4
add edi, eax
mov eax, ecx
shl edi, 4
add edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor esi, esi
jmp 0x4c038c
mov ecx, dword [ebx + 0x154]
mov dword [ebx + 0x10c], ecx
mov edx, dword [ebx + 0x150]
mov eax, dword [ebx + 0x108]
add eax, edx
mov dword [ebx + 0x108], eax
cmp dword [ebx + 0x110], esi
jle 0x4c047d
mov eax, dword [ebx + 0x114]
cmp eax, esi
je 0x4c047d
push esi
push eax
mov eax, dword [0x67a8cc]
push eax
call dword [sym.imp.MSVCRT.dll_fseek]
mov edx, dword [ebx + 0x110]
mov ecx, 0x3ff
xor eax, eax
lea edi, [esp + 0x1024]
mov dword [esp + 0x1020], esi
rep stosd dword es:[edi], eax
mov ecx, dword [0x67a8cc]
lea eax, [esp + 0x1020]
push ecx
push edx
push 4
push eax
call dword [sym.imp.MSVCRT.dll_fread]
mov eax, dword [ebx + 0x110]
mov ecx, eax
shl ecx, 4
add ecx, eax
shl ecx, 4
push ecx
call fcn.00478e60
mov dword [ebx + 0x114], eax
mov eax, dword [ebx + 0x110]
add esp, 0x20
xor edi, edi
cmp eax, esi
jle 0x4c047d
lea ebp, [esp + 0x1014]
mov edx, dword [ebp]
mov eax, dword [ebx + 0x114]
mov ecx, esi
push 0xffffffffffffffff
push edx
add ecx, eax
call fcn.004be020
mov edx, dword [ebx + 0x114]
mov eax, esi
add eax, edx
mov ecx, dword [eax]
or ecx, 0x80000000
mov dword [eax], ecx
mov edx, dword [ebx + 0x114]
mov ecx, esi
add ecx, edx
call fcn.004be0a0
mov eax, dword [ebx + 0x110]
inc edi
add ebp, 4
add esi, 0x110
cmp edi, eax
jl 0x4c042f
xor esi, esi
mov eax, dword [ebx + 0x118]
pop edi
cmp eax, esi
pop ebp
je 0x4c04e1
push 0x58
call fcn.004784b0
add esp, 4
cmp eax, esi
je 0x4c04a7
mov ecx, dword [ebx + 0x118]
push ecx
mov ecx, eax
call fcn.004406b0
jmp 0x4c04a9
xor eax, eax
mov dword [ebx + 0x118], eax
mov cl, byte [eax]
test cl, 1
je 0x4c04e1
push 0x24
call fcn.004784b0
add esp, 4
cmp eax, esi
je 0x4c04d9
mov edx, dword [ebx + 0x118]
push 1
add edx, 0x10
mov ecx, eax
push edx
call fcn.00495db0
jmp 0x4c04db
xor eax, eax
mov dword [ebx + 0x15c], eax
cmp dword [ebx + 0x11c], esi
je 0x4c0540
push 0x2c
call fcn.004784b0
add esp, 4
cmp eax, esi
je 0x4c0507
mov ecx, dword [ebx + 0x11c]
push ecx
mov ecx, eax
call fcn.004405a0
jmp 0x4c0509
xor eax, eax
mov dword [ebx + 0x11c], eax
mov cl, byte [eax]
test cl, 1
je 0x4c0540
push 0x24
call fcn.004784b0
add esp, 4
cmp eax, esi
je 0x4c0538
mov edx, dword [ebx + 0x11c]
push esi
add edx, 0xc
mov ecx, eax
push edx
call fcn.00495db0
jmp 0x4c053a
xor eax, eax
mov dword [ebx + 0x158], eax
test byte [ebx], 0x80
je 0x4c05a0
cmp dword [ebx + 0x120], esi
je 0x4c05a0
push 0x10
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [esp + 8], eax
cmp eax, esi
mov dword [esp + 0x2014], 2
je 0x4c058b
mov ecx, dword [ebx + 0x120]
push ecx
mov ecx, eax
call fcn.004bf0c0
mov dword [esp + 0x2014], 0xffffffff
mov dword [ebx + 0x120], eax
jmp 0x4c05a6
xor eax, eax
mov dword [esp + 0x2014], 0xffffffff
mov dword [ebx + 0x120], eax
jmp 0x4c05a6
mov dword [ebx + 0x120], esi
mov eax, dword [ebx]
test ah, 8
je 0x4c05f3
lea edx, [ebx + 4]
push str.__DYNAMIC_
push edx
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
je 0x4c05f3
push 0x24
call fcn.004784b0
add esp, 4
cmp eax, esi
je 0x4c05e9
lea ecx, [ebx + 0x128]
push 1
push ecx
mov ecx, eax
call fcn.00495db0
mov dword [ebx + 0x160], eax
jmp 0x4c05f9
xor eax, eax
mov dword [ebx + 0x160], eax
jmp 0x4c05f9
mov dword [ebx + 0x160], esi
mov eax, dword [ebx]
test ah, 0x20
je 0x4c0630
push 0x24
call fcn.004784b0
add esp, 4
cmp eax, esi
je 0x4c0626
lea edx, [ebx + 0x13c]
push 1
push edx
mov ecx, eax
call fcn.00495db0
mov dword [ebx + 0x164], eax
jmp 0x4c0636
xor eax, eax
mov dword [ebx + 0x164], eax
jmp 0x4c0636
mov dword [ebx + 0x164], esi
mov eax, dword [ebx]
test ah, 0x40
je 0x4c0696
cmp dword [ebx + 0x14c], esi
je 0x4c0696
push 0xc
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [esp + 8], eax
cmp eax, esi
mov dword [esp + 0x2014], 3
je 0x4c0685
mov ecx, dword [ebx]
mov edx, dword [ebx + 0x14c]
and ecx, 1
push ecx
push edx
mov ecx, eax
call fcn.004bfa80
mov dword [ebx + 0x14c], eax
mov ecx, dword [eax]
or ch, 0x80
mov dword [eax], ecx
jmp 0x4c069c
xor eax, eax
mov dword [ebx + 0x14c], eax
mov ecx, dword [eax]
or ch, 0x80
mov dword [eax], ecx
jmp 0x4c069c
mov dword [ebx + 0x14c], esi
mov dword [ebx + 0x168], esi
mov ecx, dword [esp + 0x200c]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x2010
ret 4