Function at 0x401370
Capabilities:
Clear file content

Disassembly:
mov eax, dword [esp + 0x18]
push ebx
mov ebx, dword [esp + 8]
mov ecx, ebx
push ebp
mov ebp, dword [esp + 0x18]
lea edx, [eax - 0x160b]
push esi
mov esi, dword [esp + 0x28]
xor ecx, 0x1ef8
mov dword [esp + 0x1c], edx
push edi
lea edi, [ebp - 0xefd]
cmp ecx, eax
jge 0x4015d5
mov eax, dword [0x83a354]
mov ecx, dword [esi + 0x68]
mov edx, dword [0x847b50]
cmp ecx, dword [eax + 0x128]
je 0x4013cf
mov eax, dword [esi + 0x50]
mov ecx, 0xccd5efb1
xor eax, dword [esi + 0x40]
sub ecx, eax
add edx, ecx
mov dword [0x847b50], edx
mov eax, dword [esi + 0x14]
cmp eax, dword [0x847b48]
jbe 0x4013e5
mov eax, dword [esi + 0x14c]
mov dword [esi + 0x6c], eax
jmp 0x4013f8
mov eax, 0xfffff4d0
sub eax, dword [0x847b20]
add edx, eax
mov dword [0x847b50], edx
mov ecx, dword [esp + 0x20]
mov eax, ecx
xor eax, 0x16a0
mov dword [0x847b78], 0x7cc5d0
push eax
lea eax, [ecx + 0x13f0]
push eax
mov eax, dword [esp + 0x20]
add eax, 0x487
push esi
push eax
lea eax, [edi + 0x1555]
push eax
call fcn.00419e61
mov edx, dword [0x83a354]
add esp, 0x14
mov eax, dword [esi + 0x54]
mov ecx, 0x8393e0
cmp eax, dword [edx + 0x20]
cmove ecx, dword [0x847b78]
xor edi, edi
mov dword [0x847b78], ecx
mov eax, dword [esi + 0xa8]
mov ebx, dword [eax + edi]
add edi, 4
mov eax, dword [edx + 0x54]
imul ebx, dword [esi + 0x80]
xor eax, 0x3adfe
sub dword [esi + 0x50], eax
mov eax, dword [0x847c10]
add eax, 0xfffffffe
imul eax, dword [esi + 0x140]
mov edx, ebx
shr edx, 0x18
mov dword [esi + 0x140], eax
mov eax, dword [esi + 0x20]
xor eax, dword [0x847b00]
xor eax, 1
mov dword [0x847b00], eax
mov eax, dword [0x83a354]
mov ecx, dword [eax + 0x90]
mov eax, dword [esi + 0xac]
mov byte [ecx + eax], dl
mov eax, dword [0x83a354]
inc dword [eax + 0x90]
mov eax, 0x3adc100
sub eax, dword [esi + 0x64]
add dword [esi + 0xc8], eax
mov edx, dword [0x83a354]
mov eax, dword [esi + 0xc4]
mov ecx, dword [edx + 0x64]
add ecx, 0xfc523f00
add eax, ecx
or dword [0x847bb8], eax
mov eax, dword [edx + 0x110]
xor eax, dword [esi + 0x64]
xor eax, 0x3adc100
mov dword [edx + 0x110], eax
mov edx, ebx
mov eax, dword [0x83a354]
shr edx, 0x10
mov ecx, dword [eax + 0x90]
mov eax, dword [esi + 0xac]
mov byte [ecx + eax], dl
mov edx, ebx
mov eax, dword [0x83a354]
shr edx, 8
inc dword [eax + 0x90]
mov eax, dword [0x847b34]
xor eax, 0x3adc101
imul eax, dword [esi + 0x50]
mov dword [esi + 0x50], eax
mov eax, 0xfffd25f1
sub eax, dword [esi + 0x6c]
sub eax, dword [esi + 0x14c]
add dword [0x847ba8], eax
mov ecx, dword [esi + 0x90]
mov eax, dword [0x847b7c]
mov byte [eax + ecx], dl
inc dword [esi + 0x90]
mov ecx, dword [0x83a354]
mov eax, dword [esi + 0xd8]
sub eax, dword [ecx + 0x8c]
add eax, 0x10f97f
add dword [ecx + 0x64], eax
mov eax, 0xdb9b2
sub eax, dword [esi + 0x68]
sub eax, dword [esi + 8]
add dword [0x847b3c], eax
mov ecx, dword [esi + 0x90]
mov eax, dword [0x847b7c]
mov byte [eax + ecx], bl
inc dword [esi + 0x90]
cmp edi, 0xf24
jge 0x4015aa
mov edx, dword [0x83a354]
jmp 0x40144f
mov eax, dword [0x847b44]
add eax, 0xbf5a814a
mov dword [0x847b50], eax
mov eax, dword [esi + 0x68]
cmp eax, dword [0x847b6c]
je 0x40162c
mov eax, dword [0x83a354]
mov dword [eax + 0xa8], 0x83a358
jmp 0x40162c
mov eax, dword [esi + 0x54]
and ecx, 0xa69
imul ecx, edi
xor dword [esi + 8], ecx
or eax, dword [0x847b10]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ecx, dword [0x83a354]
mov eax, dword [esi + 0xd8]
sub eax, edi
imul eax, dword [ecx + 8]
xor dword [ecx + 0x124], eax
mov eax, dword [0x847b44]
add eax, 0xfffff640
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x24]
add eax, 0x581
add eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
pop edi
pop esi
lea eax, [ebp - 0xa2]
pop ebp
pop ebx
ret