Function at 0x4178ec
Capabilities:
Clear file content

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x20]
lea ebx, [eax - 0x1e5]
add eax, 0xfffff465
add edi, 0xffffed28
mov dword [esp + 0x10], eax
lea edx, [ebp - 0x1483]
mov eax, dword [esp + 0x1c]
xor ebp, 0x18c7
add eax, 0xffffeb7d
mov dword [esp + 0x18], edx
lea ecx, [edi + 0x162c]
cmp eax, ecx
jg 0x417af5
mov eax, dword [0x493c3c]
xor ecx, ecx
push esi
mov esi, dword [esp + 0x18]
push 0x13
mov dword [eax], ecx
mov eax, dword [0x493c3c]
mov dword [eax + 4], ecx
xor eax, eax
mov dword [esi + 0x14], 0xa
inc eax
mov dword [esi + 0x1c], ecx
mov dword [0x49c748], eax
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x40], ecx
mov dword [esi + 0x3c], 2
mov dword [esi + 0x58], eax
mov eax, dword [0x493c3c]
mov dword [eax + 0x64], ecx
mov dword [esi + 0x70], ecx
mov dword [esi + 0x78], ecx
mov dword [esi + 0x7c], 0x2a
mov eax, dword [0x493c3c]
mov dword [eax + 0x88], ecx
mov eax, dword [0x493c3c]
mov dword [0x49c7c0], ecx
inc ecx
mov dword [eax + 0xb0], 0x54
mov eax, dword [0x493c3c]
mov dword [eax + 0xc0], ecx
mov eax, dword [0x493c3c]
mov dword [eax + 0xcc], 0x62
mov eax, dword [0x493c3c]
mov dword [eax + 0xe0], ecx
mov dword [esi + 0xe4], ecx
mov eax, dword [0x493c3c]
mov dword [0x49c808], 0xc
pop ecx
mov dword [eax + 0xec], ecx
xor eax, eax
inc eax
mov dword [esi + 0xfc], ecx
mov dword [esi + 0x104], eax
mov dword [esi + 0x108], eax
mov eax, dword [esi + 0x88]
mov dword [esi + 0x10c], 0xe
mov dword [esi + 0x118], 8
cmp eax, dword [0x49c82c]
jae 0x417a32
mov eax, dword [esi + 0x3c]
sub eax, dword [esi + 0x70]
xor eax, 0x59633
mov dword [esi + 0x100], eax
jmp 0x417a50
mov eax, dword [0x493c3c]
mov ecx, dword [eax + 0x104]
xor ecx, dword [eax + 0xb0]
mov eax, 0xffff0668
sub eax, ecx
add dword [0x49c7d0], eax
mov eax, dword [esi]
add eax, dword [esi + 0x64]
xor eax, dword [esi + 0x58]
xor eax, 0xa3ce3
mov dword [esi + 0x58], eax
lea eax, [edi + 0x874]
push eax
mov eax, dword [esp + 0x18]
xor eax, 0x1356
push eax
lea eax, [edi + 0x1212]
push eax
push esi
push dword [esp + 0x30]
lea eax, [edx + 0x1854]
push eax
call fcn.00401b0f
add esp, 0x18
mov edx, eax
cmp dword [esi], 0x3052
jae 0x417aab
mov ecx, dword [0x493c3c]
mov ecx, dword [ecx + 0x88]
add ecx, 0xd62a8
or dword [esi + 0x64], ecx
mov ecx, dword [0x493c3c]
xor edx, 0x11e2
mov eax, dword [ecx + 0x108]
xor eax, dword [0x49c760]
add eax, 0x5966b
xor dword [ecx + 0x7c], eax
mov eax, dword [esp + 0x14]
add eax, 0xa56
push eax
lea eax, [ebx + 0xb52]
push eax
push dword [0x493c3c]
lea eax, [edi + 0xc44]
push eax
push edx
call fcn.00417771
add esp, 0x14
pop esi
jmp 0x417b65
mov ecx, dword [0x493c3c]
mov edx, dword [esp + 0x14]
mov eax, dword [ecx + 0x28]
xor eax, dword [edx + 0xb8]
and eax, dword [edx + 0x68]
cmp ebx, eax
jae 0x417b4b
mov eax, dword [ecx + 4]
sub eax, 0x162c
and eax, dword [edx + 0xe0]
add dword [ecx + 0xf0], eax
mov ecx, ebp
mov eax, dword [edx + 0x118]
or ecx, dword [esp + 0x18]
and eax, 0x9b6
sub ebx, eax
mov eax, dword [0x493c3c]
sub ecx, dword [eax + 0x58]
imul ecx, dword [edx + 0xe0]
mov dword [edx + 0xe0], ecx
mov eax, dword [edx + 0x88]
imul eax, edi
cmp ebx, eax
ja 0x417b65
and edi, 0x1356
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop edi
lea eax, [ebp - 0xa9]
pop ebp
pop ebx
ret