Function at 0x4e31d0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x526ba0
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x588eb0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x48]
mov esi, dword [ebp + 8]
push eax
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x58], eax
call fcn.004ccdbe
push 0xffffffffffffffff
push 0x52bb3c
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 0
call fcn.004e2d10
cmp eax, 0xffffffff
je 0x4e32a5
lea edx, [eax + 1]
mov dword [ebp - 0x20], 0
xor eax, eax
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
mov eax, dword [ebp - 0x38]
cmp eax, edx
jb 0x4e3851
sub eax, edx
or ecx, 0xffffffff
cmp eax, 0xffffffff
cmovb ecx, eax
cmp dword [ebp - 0x34], 8
lea eax, [ebp - 0x48]
cmovae eax, dword [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x30]
lea eax, [eax + edx*2]
push eax
call fcn.004c3110
lea ecx, [ebp - 0x48]
call fcn.004c33b0
movups xmm0, xmmword [ebp - 0x30]
xor eax, eax
lea ecx, [ebp - 0x30]
mov word [ebp - 0x30], ax
movups xmmword [ebp - 0x48], xmm0
movq xmm0, qword [ebp - 0x20]
movq qword [ebp - 0x38], xmm0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
call fcn.004c33b0
push 0xffffffffffffffff
push 0x52bcbc
lea ecx, [ebp - 0x48]
call fcn.004e2d10
mov edx, eax
cmp edx, 0xffffffff
je 0x4e3321
xor eax, eax
mov dword [ebp - 0x20], 0
cmp dword [ebp - 0x38], edx
lea ecx, [ebp - 0x30]
mov word [ebp - 0x30], ax
lea eax, [ebp - 0x48]
cmovb edx, dword [ebp - 0x38]
cmp dword [ebp - 0x34], 8
push edx
cmovae eax, dword [ebp - 0x48]
push eax
mov dword [ebp - 0x1c], 7
call fcn.004c3110
lea ecx, [ebp - 0x48]
call fcn.004c33b0
movups xmm0, xmmword [ebp - 0x30]
xor eax, eax
lea ecx, [ebp - 0x30]
mov word [ebp - 0x30], ax
movups xmmword [ebp - 0x48], xmm0
movq xmm0, qword [ebp - 0x20]
movq qword [ebp - 0x38], xmm0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
call fcn.004c33b0
lea eax, [ebp - 0x48]
push eax
call fcn.004e2c50
add esp, 4
cmp dword [ebp - 0x38], 0
je 0x4e382e
lea eax, [ebp - 0x48]
push eax
push esi
call fcn.004e29e0
add esp, 8
test al, al
jne 0x4e382e
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 1
push eax
push 0
lea ecx, [ebp - 0x24]
mov byte [ebp - 0x4c], 2
call fcn.004e0140
mov eax, dword [ebp - 0x38]
lea eax, [eax*4 + 0x314]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.004e02b0
mov eax, dword [ebp - 0x20]
add esp, 8
mov byte [ebp - 0x4c], 0x20
cmp dword [ebp - 0x1c], eax
je 0x4e33a3
mov byte [eax], 0x20
inc eax
mov dword [ebp - 0x20], eax
jmp 0x4e33b0
lea ecx, [ebp - 0x4c]
push ecx
push eax
lea ecx, [ebp - 0x24]
call fcn.004e0140
lea eax, [ebp - 0x24]
push 4
push eax
call fcn.004e02b0
lea eax, [ebp - 0x24]
push 1
push eax
call fcn.004e02b0
lea eax, [ebp - 0x24]
push 0x21000000
push eax
call fcn.004e02b0
mov al, byte [ebp - 0x38]
add esp, 0x18
mov ecx, dword [ebp - 0x20]
mov byte [ebp - 0x4c], al
cmp dword [ebp - 0x1c], ecx
je 0x4e33ed
mov byte [ecx], al
inc ecx
mov dword [ebp - 0x20], ecx
jmp 0x4e33fd
lea eax, [ebp - 0x4c]
push eax
push ecx
lea ecx, [ebp - 0x24]
call fcn.004e0140
mov ecx, dword [ebp - 0x20]
xor esi, esi
cmp dword [ebp - 0x38], esi
jbe 0x4e3434
cmp dword [ebp - 0x34], 8
lea eax, [ebp - 0x48]
cmovae eax, dword [ebp - 0x48]
lea eax, [eax + esi*2]
cmp dword [ebp - 0x1c], ecx
je 0x4e3421
mov al, byte [eax]
mov byte [ecx], al
inc ecx
mov dword [ebp - 0x20], ecx
jmp 0x4e342e
push eax
push ecx
lea ecx, [ebp - 0x24]
call fcn.004e0140
mov ecx, dword [ebp - 0x20]
inc esi
cmp esi, dword [ebp - 0x38]
jb 0x4e3404
mov byte [ebp - 0x4c], 0x22
cmp dword [ebp - 0x1c], ecx
je 0x4e3446
mov byte [ecx], 0x22
inc ecx
mov dword [ebp - 0x20], ecx
jmp 0x4e3456
lea eax, [ebp - 0x4c]
push eax
push ecx
lea ecx, [ebp - 0x24]
call fcn.004e0140
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x38]
mov esi, 3
add eax, 0x1a
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x1c], ecx
je 0x4e3475
mov al, byte [ebp + esi - 0x50]
mov byte [ecx], al
inc ecx
mov dword [ebp - 0x20], ecx
jmp 0x4e3487
lea eax, [ebp - 0x50]
add eax, esi
push eax
push ecx
lea ecx, [ebp - 0x24]
call fcn.004e0140
mov ecx, dword [ebp - 0x20]
sub esi, 1
jns 0x4e3464
mov eax, dword [ebp - 0x38]
mov esi, 1
add eax, 0x3018
movzx eax, ax
mov dword [ebp - 0x50], eax
nop
cmp dword [ebp - 0x1c], ecx
je 0x4e34b1
mov al, byte [ebp + esi - 0x50]
mov byte [ecx], al
inc ecx
mov dword [ebp - 0x20], ecx
jmp 0x4e34c3
lea eax, [ebp - 0x50]
add eax, esi
push eax
push ecx
lea ecx, [ebp - 0x24]
call fcn.004e0140
mov ecx, dword [ebp - 0x20]
sub esi, 1
jns 0x4e34a0
mov dword [ebp - 0x50], 0x310b3009
mov esi, 3
cmp dword [ebp - 0x1c], ecx
je 0x4e34e5
mov al, byte [ebp + esi - 0x50]
mov byte [ecx], al
inc ecx
mov dword [ebp - 0x20], ecx
jmp 0x4e34f7
lea eax, [ebp - 0x50]
add eax, esi
push eax
push ecx
lea ecx, [ebp - 0x24]
call fcn.004e0140
mov ecx, dword [ebp - 0x20]
sub esi, 1
jns 0x4e34d4
mov dword [ebp - 0x50], 0x6035504
mov esi, 3
cmp dword [ebp - 0x1c], ecx
je 0x4e3519
mov al, byte [ebp + esi - 0x50]
mov byte [ecx], al
inc ecx
mov dword [ebp - 0x20], ecx
jmp 0x4e352b
lea eax, [ebp - 0x50]
add eax, esi
push eax
push ecx
lea ecx, [ebp - 0x24]
call fcn.004e0140
mov ecx, dword [ebp - 0x20]
sub esi, 1
jns 0x4e3508
mov dword [ebp - 0x50], 0x6130245
mov esi, 3
nop dword [eax]
cmp dword [ebp - 0x1c], ecx
je 0x4e3551
mov al, byte [ebp + esi - 0x50]
mov byte [ecx], al
inc ecx
mov dword [ebp - 0x20], ecx
jmp 0x4e3563
lea eax, [ebp - 0x50]
add eax, esi
push eax
push ecx
lea ecx, [ebp - 0x24]
call fcn.004e0140
mov ecx, dword [ebp - 0x20]
sub esi, 1
jns 0x4e3540
mov byte [ebp - 0x4c], 0x4e
cmp dword [ebp - 0x1c], ecx
je 0x4e357a
mov byte [ecx], 0x4e
inc ecx
mov dword [ebp - 0x20], ecx
jmp 0x4e358a
lea eax, [ebp - 0x4c]
push eax
push ecx
lea ecx, [ebp - 0x24]
call fcn.004e0140
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x38]
mov esi, 1
add eax, 0x3109
movzx eax, ax
mov dword [ebp - 0x50], eax
nop dword [eax]
cmp dword [ebp - 0x1c], ecx
je 0x4e35b1
mov al, byte [ebp + esi - 0x50]
mov byte [ecx], al
inc ecx
mov dword [ebp - 0x20], ecx
jmp 0x4e35c3
lea eax, [ebp - 0x50]
add eax, esi
push eax
push ecx
lea ecx, [ebp - 0x24]
call fcn.004e0140
mov ecx, dword [ebp - 0x20]
sub esi, 1
jns 0x4e35a0
mov eax, dword [ebp - 0x38]
mov esi, 1
add eax, 0x3007
movzx eax, ax
mov dword [ebp - 0x50], eax
nop dword [eax + eax]
cmp dword [ebp - 0x1c], ecx
je 0x4e35f1
mov al, byte [ebp + esi - 0x50]
mov byte [ecx], al
inc ecx
mov dword [ebp - 0x20], ecx
jmp 0x4e3603
lea eax, [ebp - 0x50]
add eax, esi
push eax
push ecx
lea ecx, [ebp - 0x24]
call fcn.004e0140
mov ecx, dword [ebp - 0x20]
sub esi, 1
jns 0x4e35e0
mov dword [ebp - 0x50], 0x6035504
mov esi, 3
cmp dword [ebp - 0x1c], ecx
je 0x4e3625
mov al, byte [ebp + esi - 0x50]
mov byte [ecx], al
inc ecx
mov dword [ebp - 0x20], ecx
jmp 0x4e3637
lea eax, [ebp - 0x50]
add eax, esi
push eax
push ecx
lea ecx, [ebp - 0x24]
call fcn.004e0140
mov ecx, dword [ebp - 0x20]
sub esi, 1
jns 0x4e3614
lea eax, [ebp - 0x24]
push 0x313
push eax
call fcn.004e0270
mov al, byte [ebp - 0x38]
add esp, 8
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
mov byte [ebp - 0x4c], al
cmp ecx, esi
je 0x4e3665
mov byte [esi], al
inc esi
mov dword [ebp - 0x20], esi
jmp 0x4e3678
lea eax, [ebp - 0x4c]
push eax
push esi
lea ecx, [ebp - 0x24]
call fcn.004e0140
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
xor edi, edi
cmp dword [ebp - 0x38], edi
jbe 0x4e36b2
nop
cmp dword [ebp - 0x34], 8
lea eax, [ebp - 0x48]
cmovae eax, dword [ebp - 0x48]
lea eax, [eax + edi*2]
cmp ecx, esi
je 0x4e369c
mov al, byte [eax]
mov byte [esi], al
inc esi
mov dword [ebp - 0x20], esi
jmp 0x4e36ac
push eax
push esi
lea ecx, [ebp - 0x24]
call fcn.004e0140
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
inc edi
cmp edi, dword [ebp - 0x38]
jb 0x4e3680
mov byte [ebp - 0x4c], 0x23
cmp ecx, esi
je 0x4e36c3
mov byte [esi], 0x23
inc esi
mov dword [ebp - 0x20], esi
jmp 0x4e36d3
lea eax, [ebp - 0x4c]
push eax
push esi
lea ecx, [ebp - 0x24]
call fcn.004e0140
mov esi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x58]
sub esi, dword [ebp - 0x24]
mov edi, esi
mov dword [ebp - 0x18], edi
cmp dword [eax + 0x14], 8
jb 0x4e36e6
mov eax, dword [eax]
push 0x52bca4
push eax
call fcn.0050a7e8
add esp, 8
mov dword [ebp - 0x50], eax
test eax, eax
je 0x4e37d1
push 2
push 0
push eax
call fcn.0050ac0d
push dword [ebp - 0x50]
call fcn.0050b31e
push 0
push 0
push dword [ebp - 0x50]
mov esi, eax
call fcn.0050ac0d
lea eax, [ebp - 0x24]
push esi
push eax
call fcn.004e02b0
push dword [ebp - 0x50]
lea eax, [ebp - 0x51]
push 1
push 1
push eax
call fcn.0050b4f5
mov esi, dword [ebp - 0x20]
add esp, 0x34
test eax, eax
je 0x4e377e
mov edi, dword [ebp - 0x50]
cmp dword [ebp - 0x1c], esi
je 0x4e3756
mov al, byte [ebp - 0x51]
mov byte [esi], al
inc esi
mov dword [ebp - 0x20], esi
jmp 0x4e3766
lea eax, [ebp - 0x51]
push eax
push esi
lea ecx, [ebp - 0x24]
call fcn.004e0140
mov esi, dword [ebp - 0x20]
push edi
push 1
lea eax, [ebp - 0x51]
push 1
push eax
call fcn.0050b4f5
add esp, 0x10
test eax, eax
jne 0x4e3746
mov edi, dword [ebp - 0x18]
push dword [ebp - 0x50]
call fcn.0050a8d3
mov edx, dword [ebp - 0x24]
add esp, 4
sub esi, edx
mov dword [ebp - 0x18], 0x4550306
mov byte [ebp - 0x14], 3
lea ecx, [esi - 5]
cmp edi, ecx
jae 0x4e37d4
mov eax, dword [edx + edi]
lea ecx, [ebp - 0x18]
cmp eax, dword [ecx]
lea ecx, [esi - 5]
jne 0x4e37bd
movzx eax, byte [edx + edi + 4]
lea edx, [ebp - 0x18]
cmp al, byte [edx + 4]
mov edx, dword [ebp - 0x24]
je 0x4e37c4
inc edi
cmp edi, ecx
jb 0x4e37a0
jmp 0x4e37d4
mov eax, dword [ebp - 0x38]
mov cl, byte [edx + edi + 5]
mov byte [edx + eax + 0x30], cl
jmp 0x4e37d4
mov edx, dword [ebp - 0x24]
lea eax, [esi - 5]
bswap eax
mov dword [edx + 1], eax
mov eax, dword [ebp - 0x5c]
cmp dword [eax + 0x14], 8
jb 0x4e37e7
mov eax, dword [eax]
push 0x52c08c
push eax
call fcn.0050a7e8
add esp, 8
mov dword [ebp - 0x50], eax
test eax, eax
je 0x4e3826
xor edi, edi
test esi, esi
je 0x4e381d
push eax
mov eax, dword [ebp - 0x24]
push 1
add eax, edi
push 1
push eax
call fcn.0050be9b
mov eax, dword [ebp - 0x50]
inc edi
add esp, 0x10
cmp edi, esi
jb 0x4e3802
push eax
call fcn.0050a8d3
add esp, 4
lea ecx, [ebp - 0x24]
call fcn.004b1560
lea ecx, [ebp - 0x48]
call fcn.004c33b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004fbc95
mov esp, ebp
pop ebp
ret
call fcn.004a4bd0
int3