Function at 0x10008050
Capabilities:
Clear file content

Disassembly:
sub esp, 0x560
push ebx
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x2d]
mov byte [esp + 0x2c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x175]
mov byte [esp + 0x174], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x279]
mov byte [esp + 0x278], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x574]
push 0x104
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x30]
mov dword [esp + 0x1c], 0x104
push eax
push ecx
mov byte [esp + 0x1f], 0
call dword [0x10019110]
lea edx, [esp + 0x174]
push 0x104
lea eax, [esp + 0x30]
push edx
push eax
call fcn.1000c650
mov edi, dword [0x100192e8]
add esp, 0xc
lea ecx, [esp + 0x174]
lea edx, [esp + 0x2c]
push ecx
push edx
call edi
lea eax, [esp + 0x2c]
push eax
call fcn.10005770
mov esi, dword [0x10019334]
add esp, 4
test al, al
jne 0x10008134
lea ecx, [esp + 0x2c]
push 0x20
push ecx
call esi
add esp, 8
test eax, eax
je 0x10008134
lea edx, [esp + 0x2c]
mov byte [eax], 0
push edx
call fcn.10005770
add esp, 4
test al, al
je 0x10008110
lea eax, [esp + 0x2c]
push eax
call fcn.10005770
add esp, 4
test al, al
jne 0x10008152
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x560
ret 8
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x278]
push ecx
push edx
call edi
lea eax, [esp + 0x2c]
push 0x2e
push eax
lea ebp, [esp + 0x34]
call esi
add esp, 8
test eax, eax
je 0x10008280
mov ebx, dword [sym.imp.MSVCRT.dll_strrchr]
lea ecx, [esp + 0x14]
push ecx
push 0xf003f
push 0
push eax
push 0x80000000
call ebx
test eax, eax
jne 0x10008280
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_SetEndOfFile]
lea edx, [esp + 0x18]
lea eax, [esp + 0x2c]
push edx
push eax
push 0
push ecx
call esi
mov edx, dword [esp + 0x14]
mov ebp, dword [sym.imp.MSVCRT.dll__initterm]
push edx
call ebp
mov ecx, 0x7d
xor eax, eax
lea edi, [esp + 0x37c]
push 0x100208fc
rep stosd dword es:[edi], eax
lea eax, [esp + 0x30]
push 0x100208f8
push eax
lea ecx, [esp + 0x388]
push 0x100208e8
push ecx
call dword [0x10019480]
add esp, 0x14
lea edx, [esp + 0x14]
lea eax, [esp + 0x37c]
push edx
push 0xf003f
push 0
push eax
push 0x80000000
call ebx
test eax, eax
je 0x10008224
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x560
ret 8
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x2c]
lea edx, [esp + 0x2c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0x104
push ecx
push edx
push eax
mov eax, dword [esp + 0x20]
push eax
call esi
mov ecx, dword [esp + 0x14]
push ecx
call ebp
mov ebx, dword [0x10019350]
lea edx, [esp + 0x2c]
push 0x100208e4
push edx
call ebx
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x10008286
lea eax, [esp + 0x2c]
push 0x10020820
push eax
call ebx
add esp, 8
mov ebp, eax
jmp 0x10008286
mov ebx, dword [0x10019350]
mov ecx, dword [esp + 0x574]
push 0x100208d4
push ecx
call ebx
add esp, 8
test eax, eax
je 0x100082fc
mov edi, 0x10020724
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x174]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x174]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x10022c18
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test ebp, ebp
jne 0x10008323
mov esi, dword [0x100192c4]
lea eax, [esp + 0x2c]
push 0x10020724
push eax
call esi
lea ecx, [esp + 0x174]
lea edx, [esp + 0x2c]
push ecx
push edx
call esi
jmp 0x10008332
lea eax, [esp + 0x174]
push eax
push ebp
call dword [0x100192e8]
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x134]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x578]
mov dword [esp + 0x130], 0x44
test eax, eax
je 0x10008365
mov dword [esp + 0x138], 0x100207f0
jmp 0x10008370
mov dword [esp + 0x15c], 1
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x130]
push ecx
push edx
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x48]
push 0
push eax
push 0
call dword [0x10019180]
test eax, eax
je 0x100083b3
mov ecx, dword [esp + 0x20]
mov esi, dword [0x100192d8]
push ecx
call esi
mov edx, dword [esp + 0x1c]
push edx
call esi
mov byte [esp + 0x13], 1
mov eax, dword [esp + 0x574]
push 0x100205b4
push eax
call ebx
add esp, 8
test eax, eax
je 0x100083db
push 4
lea ecx, [esp + 0x27c]
push 0
push ecx
call dword [0x10019308]
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x560
ret 8