Function at 0x10048c79
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
push esi
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x10048d02
mov eax, dword [ebp + 0x3c]
mov dword [ebp - 0x50], eax
lea eax, [ebp + 0x30]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x68]
movzx eax, byte [eax]
test eax, eax
je 0x10048cb7
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x10048cb5
push 0
call fcn.1004b2da
pop ecx
jmp 0x10048cfd
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
movzx eax, byte [eax]
test eax, eax
je 0x10048cfd
push 0x27af
push 0x192b
push 0x6b5a
push 0
push 1
push 0x2058
push 0x1058
push 0x3030
call fcn.10043de4
add esp, 0x20
jmp 0x10048fd5
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp + 0x38]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0x34]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0xbc], eax
lea eax, [ebp + 0x14]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x90]
movzx eax, byte [eax]
test eax, eax
je 0x10048d70
push 0
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
jmp 0x10048fd5
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0x10]
mov dword [eax], 0
jmp 0x10048e2e
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax], 3
jg 0x10048fd5
mov dword [ebp - 0x14], 0
jmp 0x10048e4a
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 3
jge 0x10048e60
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0xcc], 3
jmp 0x10048e43
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x18]
mov dword [ecx], eax
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0
je 0x10048ebf
mov eax, dword [ebp - 8]
push dword [eax]
mov ecx, dword [ebp - 0xc]
call fcn.10021821
mov eax, dword [ebp - 0x94]
mov eax, dword [eax]
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x1c]
mov ecx, dword [ecx]
mov dword [eax], ecx
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
mov dword [ebp - 0x28], eax
push 4
pop eax
shl eax, 0
mov ecx, dword [ebp - 0x28]
mov dword [ebp + eax - 0xcc], ecx
cmp dword [ebp - 0x28], 0
je 0x10048ebf
mov dword [ebp - 0x20], 1
jmp 0x10048ec3
and dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x9c]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
mov eax, dword [ebp - 8]
push dword [eax]
mov ecx, dword [ebp - 0xc]
call fcn.10021821
mov esi, eax
push 1
mov ecx, dword [ebp - 0xa4]
call fcn.10021821
mov eax, dword [eax]
neg eax
imul eax, eax, 0x7169
cmp dword [esi], eax
jle 0x10048f01
mov dword [ebp - 0x38], 1
jmp 0x10048f05
and dword [ebp - 0x38], 0
cmp dword [ebp - 0x38], 0
jl 0x10048f14
mov dword [ebp - 0x30], 1
jmp 0x10048f18
and dword [ebp - 0x30], 0
cmp dword [ebp - 0x30], 0xffff
ja 0x10048f2a
mov dword [ebp - 0x40], 1
jmp 0x10048f2e
and dword [ebp - 0x40], 0
mov eax, dword [ebp - 0xac]
mov eax, dword [eax]
cmp dword [ebp - 0x40], eax
jne 0x10048f44
mov dword [ebp - 0x24], 1
jmp 0x10048f48
and dword [ebp - 0x24], 0
push 0
mov ecx, dword [ebp - 0xc]
call fcn.10021821
mov esi, dword [ebp - 0x24]
sub esi, dword [eax]
mov eax, dword [ebp - 8]
imul esi, dword [eax]
mov eax, dword [ebp - 8]
push dword [eax]
mov ecx, dword [ebp - 0xc]
call fcn.10021821
cmp esi, dword [eax]
je 0x10048f77
mov dword [ebp - 0x2c], 1
jmp 0x10048f7b
and dword [ebp - 0x2c], 0
cmp dword [ebp - 0x2c], 0xfffffff7
jne 0x10048f8a
mov dword [ebp - 0x34], 1
jmp 0x10048f8e
and dword [ebp - 0x34], 0
mov eax, dword [ebp - 8]
push dword [eax]
mov ecx, dword [ebp - 0xc]
call fcn.10021821
mov eax, dword [eax]
cmp eax, dword [ebp - 0x34]
je 0x10048fab
mov dword [ebp - 0x3c], 1
jmp 0x10048faf
and dword [ebp - 0x3c], 0
cmp dword [ebp - 0x3c], 0x4bb1
jg 0x10048fc1
mov dword [ebp - 0x44], 1
jmp 0x10048fc5
and dword [ebp - 0x44], 0
mov eax, dword [ebp - 0xb4]
mov ecx, dword [ebp - 0x44]
mov dword [eax], ecx
jmp 0x10048e23
pop esi
mov esp, ebp
pop ebp
ret