Function at 0x4c12d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x618b4b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18c
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x2c], edi
mov eax, 0x67b410
xor edx, edx
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4c11e4
mov esi, dword [eax + 8]
sub esi, ecx
cmp edx, esi
jae 0x4c11e4
mov byte [ecx + edx], 1
inc edx
jmp 0x4c11cd
mov edx, dword [eax + 4]
test edx, edx
jne 0x4c11ef
xor ecx, ecx
jmp 0x4c11f4
mov ecx, dword [eax + 8]
sub ecx, edx
mov dword [eax - 4], ecx
add eax, 0x18
cmp eax, 0x67b4e8
jl 0x4c11cb
lea ecx, [ebp - 0x198]
call fcn.005ac3b0
mov dword [ebp - 0x14], eax
mov eax, dword [edi + 0x50]
test eax, eax
mov dword [ebp - 4], 0
jne 0x4c1221
xor ebx, ebx
jmp 0x4c1239
mov ecx, dword [edi + 0x54]
sub ecx, eax
mov eax, 0x78787879
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
mov ebx, edx
mov eax, dword [edi + 0x203cc]
test eax, eax
lea esi, [edi + 0x203c8]
jne 0x4c124d
xor edx, edx
jmp 0x4c1265
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0xb60b60b7
imul ecx
add edx, ecx
sar edx, 8
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
cmp edx, ebx
jae 0x4c12a0
mov eax, dword [esi + 4]
test eax, eax
jne 0x4c1274
xor edx, edx
jmp 0x4c128c
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0xb60b60b7
imul ecx
add edx, ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add edx, eax
mov ecx, dword [ebp - 0x14]
mov eax, dword [esi + 8]
push ecx
sub ebx, edx
push ebx
push eax
mov ecx, esi
call fcn.004c6a70
jmp 0x4c12c3
mov ecx, esi
call fcn.004c63c0
cmp ebx, eax
jae 0x4c12c3
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push eax
lea eax, [ebx + ebx*4]
lea edx, [eax + eax*8]
lea eax, [ecx + edx*8]
push eax
mov ecx, esi
call fcn.004c6d90
push 1
lea ecx, [ebp - 0xd4]
mov dword [ebp - 4], 0xffffffff
call fcn.00404140
mov ecx, dword [0x67db18]
mov al, byte [ecx + 0x1e728]
test al, al
mov dword [ebp - 0x20], 1
je 0x4c12f5
mov dword [ebp - 0x20], 2
mov eax, dword [ebp - 0x20]
test eax, eax
mov dword [ebp - 0x10], 0
jle 0x4c1520
mov eax, dword [0x65e03c]
test eax, eax
mov dword [ebp - 0x18], 0
jle 0x4c150e
mov eax, dword [0x65e038]
xor edx, edx
test eax, eax
mov dword [ebp - 0x14], edx
jle 0x4c14f9
mov ecx, dword [edi + 0x1ead4]
mov ebx, dword [ebp - 0x18]
mov eax, ecx
imul eax, dword [ebp - 0x10]
add eax, ebx
imul eax, ecx
add eax, edx
lea ecx, [eax + eax*8]
lea eax, [eax + ecx*2]
mov ecx, dword [edi + 0x1ead0]
lea esi, [ecx + eax*2]
mov eax, dword [esi + 0x1e]
cmp eax, 0x62
mov dword [ebp - 0x1c], esi
je 0x4c1366
cmp eax, 0x4d
jne 0x4c14e8
test byte [esi + 0xd], 0x10
je 0x4c14e8
mov eax, dword [esi]
mov ebx, dword [edi + 0x50]
mov ecx, eax
shl ecx, 4
add ecx, eax
lea ecx, [ebx + ecx*8]
mov ebx, dword [edi + 0x203cc]
mov dword [ebp - 0x28], ecx
lea ecx, [eax + eax*4]
lea ecx, [ecx + ecx*8]
lea ebx, [ebx + ecx*8]
mov cl, byte [ebp - 0x10]
mov byte [ebx + 5], dl
mov dl, byte [ebp - 0x18]
mov byte [ebx + 6], dl
mov byte [ebx + 7], cl
mov byte [ebx], al
cmp dword [esi + 0x1e], 0x4d
mov dword [ebp - 0x24], ebx
jne 0x4c13c5
mov edx, dword [ebp - 0x28]
mov dword [esi + 0x1e], 0x62
mov ax, word [edx + 0x68]
push esi
mov ecx, edi
mov word [esi + 0x22], ax
call fcn.004c00f0
mov eax, dword [ebp - 0x28]
mov cl, byte [eax + 0x54]
test cl, cl
je 0x4c13ec
mov ecx, dword [0x6264b4]
push ecx
push 0
add eax, 0x58
push eax
lea ecx, [ebx + 0xc4]
call fcn.00404650
jmp 0x4c14d2
mov esi, dword [eax + 0x68]
lea edx, [esi + esi*2]
lea ecx, [edx*8 + 0x67b408]
call fcn.004ff8b0
cmp eax, 0xffffffff
jne 0x4c1425
mov edx, 8
xor ecx, ecx
call fcn.004fe3a0
mov esi, eax
lea eax, [esi + esi*2]
lea ecx, [eax*8 + 0x67b408]
call fcn.004ff8b0
cmp eax, 0xffffffff
je 0x4c1403
shl esi, 4
add esi, eax
mov esi, dword [esi*4 + 0x68a82c]
or ecx, 0xffffffff
xor eax, eax
add ebx, 0xc4
mov edi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
mov ecx, ebx
mov dword [ebp - 0x30], edi
call fcn.004049a0
cmp eax, edi
jae 0x4c1458
call fcn.005f804b
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x4c147d
mov al, byte [ecx - 1]
test al, al
je 0x4c147d
cmp al, 0xff
je 0x4c147d
test edi, edi
jne 0x4c14a1
dec al
mov byte [ecx - 1], al
push edi
mov ecx, ebx
call fcn.00404140
jmp 0x4c14c9
test edi, edi
jne 0x4c148c
push 1
mov ecx, ebx
call fcn.00404140
jmp 0x4c14c9
mov eax, dword [ebx + 0xc]
cmp eax, 0x1f
ja 0x4c1498
cmp eax, edi
jae 0x4c14a9
push 1
mov ecx, ebx
call fcn.00404140
push edi
mov ecx, ebx
call fcn.004049b0
mov eax, dword [ebp - 0x30]
mov ecx, edi
mov edi, dword [ebx + 4]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 4]
mov dword [ebx + 8], eax
mov byte [ecx + eax], 0
mov edi, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x28]
push edx
mov ecx, ebx
call fcn.005ae8e0
push esi
mov ecx, edi
call fcn.004c00f0
mov edx, dword [ebp - 0x14]
mov eax, dword [0x65e038]
inc edx
cmp edx, eax
mov dword [ebp - 0x14], edx
jl 0x4c132d
mov ecx, dword [ebp - 0x18]
mov edx, dword [0x65e03c]
inc ecx
cmp ecx, edx
mov dword [ebp - 0x18], ecx
jl 0x4c1320
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
inc eax
cmp eax, ecx
mov dword [ebp - 0x10], eax
jl 0x4c1307
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret