Function at 0x404728
Capabilities:
Clear file content
Get file attributes

Disassembly:
sub esp, 0xc
mov edx, dword [esp + 0x14]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
add edx, 0xfffff86c
push edi
mov ebx, esi
mov dword [esp + 0x14], edx
xor ebx, 0x3657
lea eax, [esi + 0xc01]
lea ecx, [esi - 0x146c]
mov dword [esp + 0x34], eax
lea edi, [esi + 0x867]
mov dword [esp + 0x10], ecx
lea ebp, [esi - 0x410]
mov dword [esp + 0x24], edi
mov eax, ecx
mov dword [esp + 0x18], ebp
xor esi, 0x430
xor eax, 0x1110
cmp esi, eax
jg 0x4049ce
mov eax, ebp
xor eax, 0x412
cmp ecx, eax
jg 0x404b3d
mov esi, dword [esp + 0x30]
mov edx, dword [esi + 0x50]
jmp 0x4047fe
mov eax, dword [esi + 0x7c]
add eax, dword [esi + 0xdc]
xor eax, 0x18c976
add dword [0xaa12cc], eax
mov eax, dword [esi + 0x120]
sub eax, dword [esi + 8]
add eax, 0x14
xor dword [esi + 0x110], eax
mov eax, dword [esi + 0x108]
add eax, 0xfff71741
add dword [esi + 8], eax
mov eax, edx
imul eax, edx
add dword [esi + 0xd4], eax
mov eax, dword [esi + 0x44]
xor eax, 0x13ffcb
imul eax, dword [0xaa1278]
mov dword [0xaa1278], eax
mov eax, dword [esi + 0x1c]
sub eax, 0x12
add dword [esi + 0x108], eax
inc edx
mov eax, dword [0xa662e4]
cmp edx, dword [eax + 0x54]
jbe 0x40479e
cmp dword [esi + 0xac], 0x17709
jbe 0x40482a
mov eax, dword [eax + 0x120]
sub eax, dword [esi + 0x20]
add eax, 0x2da29
or dword [esi + 0xc4], eax
jmp 0x404846
mov eax, dword [esi + 0xc4]
xor eax, dword [0xaa1348]
add eax, 5
imul eax, dword [esi + 0xd4]
mov dword [esi + 0xd4], eax
mov ecx, dword [0xa662e4]
mov eax, dword [0xaa1344]
mov dword [ecx + 0xa4], eax
mov eax, dword [esi]
sub dword [esi + 0xa4], eax
mov ecx, dword [0xa662e4]
mov eax, dword [esi + 0xd4]
mov dword [0xaa1340], eax
mov eax, dword [esi + 4]
add dword [ecx + 0xd0], eax
mov eax, dword [esi + 0x68]
xor eax, dword [esi + 8]
add eax, 0x1b8e8d
mov dword [esi + 0x4c], eax
mov eax, dword [esi + 0x78]
xor eax, dword [esi + 0x34]
mov ecx, dword [0xa662e4]
xor eax, 0xdd4
sub dword [ecx + 0x4c], eax
mov eax, dword [esi + 0x108]
cmp eax, dword [esi + 0xfc]
jb 0x4048b4
mov eax, 0x13d5cb
sub eax, dword [esi + 0x44]
add dword [esi + 0x4c], eax
mov eax, dword [0xa662e4]
mov ecx, dword [eax + 0x120]
mov eax, 0xb41e3
xor ecx, dword [esi + 0xe8]
sub eax, ecx
add dword [0xaa12bc], eax
cmp dword [esp + 0x34], ebp
je 0x404b3d
mov ecx, dword [esi + 0x4c]
mov edx, dword [esi + 0x98]
xor ecx, 0xc167f
add edx, 0x3e3a87
add edx, ecx
mov dword [esi + 0x4c], edx
mov eax, dword [0xaa1384]
cmp eax, dword [esi + 0x20]
je 0x40492f
mov eax, dword [esi + 0x124]
mov ecx, dword [0xaa1308]
sub eax, 0x13889f
push eax
add ecx, 0x193e11
push ecx
push edx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
add eax, 0x4800
mov dword [esi + 0xcc], eax
jmp 0x404944
mov eax, dword [esi + 0x120]
xor eax, dword [esi + 0xc]
xor eax, dword [0xaa12e8]
add dword [0xaa1300], eax
mov eax, dword [0xaa1364]
mov ecx, dword [esi + 0xdc]
add eax, 0x194be1
add ecx, eax
mov eax, dword [0xa662e4]
mov dword [eax + 0x84], ecx
cmp dword [esi + 0x7c], 0x14906
ja 0x404989
mov eax, dword [0xaa12cc]
add eax, 0xfffe29b2
add eax, dword [esi + 0xac]
imul eax, dword [esi + 0xfc]
mov dword [esi + 0xfc], eax
jmp 0x40499a
mov eax, dword [0xa662e4]
mov ecx, dword [esi + 0xcc]
mov dword [eax + 0xb8], ecx
mov ecx, dword [esi + 0xe8]
sub ebx, 0x10
mov eax, dword [0xa662e4]
sub ecx, 0xb05d6
mov dword [eax + 0x11c], ecx
mov eax, dword [0xa662e4]
mov eax, dword [eax + 0x108]
sub eax, 0x1119f9d0
mov dword [0xaa12f0], eax
jmp 0x404b3d
mov ebp, dword [esp + 0x30]
mov eax, dword [ebp + 0x60]
or eax, edx
or eax, 0x17b0
cmp dword [ebp + 8], eax
jb 0x404b3d
mov eax, esi
sub eax, edi
imul ecx, eax, 0x105c
mov eax, dword [0xa662e4]
cmp dword [eax + 8], ecx
jne 0x404b3d
mov eax, dword [ebp + 0x70]
add eax, dword [0xaa136c]
xor eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov eax, dword [esp + 0x34]
add eax, 0xffffeefb
xor dword [0xaa134c], eax
mov eax, dword [0xaa1278]
or eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0xa662e4]
mov edi, dword [ebp + 0xe0]
or edi, ebx
imul edi, esi
mov eax, dword [ecx + 0x98]
or eax, dword [0xaa1278]
imul eax, eax, 0x20f1
or eax, edi
or eax, dword [esp + 0x14]
or dword [ecx + 0xec], eax
mov eax, dword [0xa662e4]
mov ecx, dword [ebp + 0xe0]
sub ecx, 0x1110
mov eax, dword [eax + 0x10c]
sub eax, dword [esp + 0x10]
sub eax, 0x1cd3
xor ebx, eax
mov eax, dword [ebp + 0x6c]
and eax, dword [0xaa1388]
and eax, ebx
sub dword [ebp + 0x130], eax
mov eax, dword [0xa662e4]
mov dword [eax + 0x120], ecx
mov eax, dword [0xa662e4]
mov eax, dword [eax + 0x98]
imul eax, dword [esp + 0x34]
add eax, dword [ebp + 0x44]
push eax
mov eax, dword [esp + 0x28]
and eax, dword [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov eax, dword [ebp + 0xdc]
or edi, dword [esp + 0x10]
imul eax, ebx
sub eax, 0x1105
or dword [0xaa1290], eax
add edi, dword [ebp + 0x78]
imul edi, dword [ebp + 0x78]
mov dword [ebp + 0x78], edi
mov edx, dword [0xa662e4]
mov esi, dword [ebp + 0xe0]
mov eax, dword [edx + 0xd8]
add eax, dword [ebp + 0x114]
mov ecx, dword [edx + 0x18]
imul edx, eax, 0x222b
add ecx, 0xffffeef0
mov eax, dword [ebp + 0x118]
add esi, ecx
and eax, dword [0xaa12f8]
mov ecx, dword [esp + 0x18]
or eax, 0x1eac
push eax
mov eax, dword [esp + 0x28]
add ecx, edi
push ebp
add eax, eax
push eax
push ecx
push edx
push esi
call fcn.00404728
and eax, dword [esp + 0x28]
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0xc
ret