Function at 0x4c4830
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 0x7d
add esp, 0xfffff004
push eax
dec eax
jne 0x4c4839
mov eax, dword [ebp - 4]
add esp, 0xfffffacc
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x7d538], ecx
mov dword [ebp - 0x7d530], ecx
mov dword [ebp - 0x7d534], ecx
mov dword [ebp - 0x7d52c], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.00404a60
xor eax, eax
push ebp
push 0x4c4b2c
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov dword [ebp - 0x24], 0x7d000
lea edx, [ebp - 0x7d52c]
mov eax, dword [0x4c8d90]
mov eax, dword [eax]
call fcn.00469a30
mov eax, dword [ebp - 0x7d52c]
mov edx, 0x40
call fcn.00408fac
mov esi, eax
mov ecx, 2
mov edx, 0xffffff00
mov eax, esi
call fcn.0040908c
lea eax, [ebp - 0x7d527]
xor ecx, ecx
mov edx, 0x101
call fcn.00403044
lea edx, [ebp - 0x7d527]
mov ecx, pe_nt_image_headers32
mov eax, esi
call fcn.00409034
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x7d527]
mov ecx, 0x101
mov edx, pe_nt_image_headers32
call fcn.004ba4e8
test al, al
je 0x4c4ad6
lea ecx, [ebp - 0xc]
mov edx, 0x4c4b44
mov eax, dword [ebp - 0xc]
call fcn.004ba59c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x14]
mov edx, dword [ebp - 0xc]
mov eax, edi
call fcn.004c4690
xor ecx, ecx
mov edx, dword [ebp - 0x18]
mov eax, esi
call fcn.0040908c
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
call fcn.004049bc
jne 0x4c4ac3
xor ebx, ebx
lea edx, [ebp - 0x7d534]
mov eax, dword [0x4c8d90]
mov eax, dword [eax]
call fcn.00469a30
mov eax, dword [ebp - 0x7d534]
lea edx, [ebp - 0x7d530]
call fcn.004091d0
push dword [ebp - 0x7d530]
push 0x4c4b50
push dword [ebp - 0x20]
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404938
mov eax, dword [ebp - 0x10]
call fcn.00409008
mov dword [ebp - 8], eax
lea eax, [ebp - 0x425]
xor ecx, ecx
mov edx, 0x401
call fcn.00403044
lea edx, [ebp - 0x425]
mov ecx, 0x401
mov eax, esi
call fcn.00409034
mov edi, eax
lea edx, [ebp - 0x425]
lea eax, [ebp - 0x7d426]
add eax, ebx
mov ecx, edi
call fcn.00409364
add ebx, edi
cmp ebx, dword [ebp - 0x24]
jl 0x4c4a2c
mov ecx, 2
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.0040908c
lea edx, [ebp - 0x7d426]
mov ecx, ebx
mov eax, dword [ebp - 8]
call fcn.00409060
cmp ebx, eax
je 0x4c4a1a
mov eax, 0x4c4b5c
call fcn.004ba6c0
xor ebx, ebx
jmp 0x4c4add
xor ebx, ebx
lea eax, [ebp - 0x7d426]
xor ecx, ecx
mov edx, dword [ebp - 0x24]
call fcn.00403044
cmp edi, 0x400
jge 0x4c49a4
test ebx, ebx
je 0x4c4a5a
lea edx, [ebp - 0x7d426]
mov ecx, ebx
mov eax, dword [ebp - 8]
call fcn.00409060
cmp ebx, eax
je 0x4c4a5a
mov eax, 0x4c4b5c
call fcn.004ba6c0
mov ecx, 2
mov edx, 0xffffff00
mov eax, dword [ebp - 8]
call fcn.0040908c
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_SetEndOfFile_1
mov eax, dword [ebp - 8]
call fcn.004090d0
lea eax, [ebp - 0x7d538]
mov ecx, dword [ebp - 0x10]
mov edx, 0x4c4b74
call fcn.004048c4
mov eax, dword [ebp - 0x7d538]
call fcn.004ba658
mov eax, dword [0x4c8d7c]
mov eax, dword [eax]
mov eax, dword [eax + 0x304]
mov eax, dword [eax + 0x208]
xor edx, edx
call fcn.00479fa4
mov edx, 0x4c4b94
call fcn.00479f00
mov bl, 1
jmp 0x4c4add
mov eax, esi
call fcn.004090d0
mov eax, 0x4c4ba8
call fcn.004ba6c0
jmp 0x4c4add
mov eax, esi
call fcn.004090d0
mov eax, dword [0x4c8d7c]
mov eax, dword [eax]
mov eax, dword [eax + 0x2fc]
mov dl, 1
mov ecx, dword [eax]
call dword [ecx + 0x64]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c4b33
lea eax, [ebp - 0x7d538]
mov edx, 4
call fcn.004045e4
lea eax, [ebp - 0x20]
call fcn.004045c0
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004045e4
lea eax, [ebp - 4]
call fcn.004045c0
ret