Function at 0x404721
Capabilities:
Clear file content
Get file attributes
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x10
mov edx, dword [esp + 0x18]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x34]
add edx, 0x1095
push edi
mov ebx, esi
mov dword [esp + 0x14], edx
xor ebx, 0x1899
lea eax, [esi - 0x794]
mov dword [esp + 0x10], eax
lea ecx, [esi - 0x1899]
lea eax, [esi - 0x42d]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x38], eax
lea edi, [esi + 0x9a2]
lea ebp, [esi + 0x43a]
mov dword [esp + 0x28], edi
mov eax, ecx
mov dword [esp + 0x1c], ebp
xor esi, 0x901
xor eax, 0x105c
cmp esi, eax
jle 0x4049d4
mov eax, ebp
xor eax, 0x648
cmp ecx, eax
jg 0x404b43
mov esi, dword [esp + 0x34]
mov edx, dword [esi + 0x50]
jmp 0x404801
mov eax, dword [esi + 0xdc]
add eax, dword [esi + 0x7c]
xor eax, 0x18c976
add dword [0x5726b4], 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 [0x572660]
mov dword [0x572660], eax
mov eax, dword [esi + 0x1c]
sub eax, 0x12
add dword [esi + 0x108], eax
inc edx
mov eax, dword [0x566634]
cmp edx, dword [eax + 0x54]
jbe 0x4047a1
cmp dword [esi + 0xac], 0x17709
jbe 0x40482d
mov eax, dword [eax + 0x120]
sub eax, dword [esi + 0x20]
add eax, 0x2da29
or dword [esi + 0xc4], eax
jmp 0x404849
mov eax, dword [esi + 0xc4]
xor eax, dword [0x572730]
add eax, 5
imul eax, dword [esi + 0xd4]
mov dword [esi + 0xd4], eax
mov ecx, dword [0x566634]
mov eax, dword [0x57272c]
mov dword [ecx + 0xa4], eax
mov eax, dword [esi]
sub dword [esi + 0xa4], eax
mov ecx, dword [0x566634]
mov eax, dword [esi + 0xd4]
mov dword [0x572728], 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 [0x566634]
xor eax, 0xdd4
sub dword [ecx + 0x4c], eax
mov eax, dword [esi + 0x108]
cmp eax, dword [esi + 0xfc]
jb 0x4048b7
mov eax, 0x13d5cb
sub eax, dword [esi + 0x44]
add dword [esi + 0x4c], eax
mov eax, dword [0x566634]
mov ecx, dword [eax + 0x120]
mov eax, 0xb41e3
xor ecx, dword [esi + 0xe8]
sub eax, ecx
add dword [0x5726a4], eax
cmp dword [esp + 0x38], ebp
je 0x404b43
mov ecx, dword [esi + 0x4c]
mov edx, dword [esi + 0x98]
xor ecx, 0xc167f
add edx, 0x216a87
add edx, ecx
mov dword [esi + 0x4c], edx
mov eax, dword [0x57276c]
cmp eax, dword [esi + 0x20]
je 0x404932
mov eax, dword [esi + 0x124]
mov ecx, dword [0x5726f0]
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 0x404947
mov eax, dword [esi + 0x120]
xor eax, dword [esi + 0xc]
xor eax, dword [0x5726d0]
add dword [0x5726e8], eax
mov eax, dword [0x57274c]
mov ecx, dword [esi + 0xdc]
add eax, 0x194be1
add ecx, eax
mov eax, dword [0x566634]
mov dword [eax + 0x84], ecx
cmp dword [esi + 0x7c], 0x14906
ja 0x40498c
mov eax, dword [0x5726b4]
add eax, 0xfffe29b2
add eax, dword [esi + 0xac]
imul eax, dword [esi + 0xfc]
mov dword [esi + 0xfc], eax
jmp 0x40499d
mov eax, dword [0x566634]
mov ecx, dword [esi + 0xcc]
mov dword [eax + 0xb8], ecx
mov ecx, dword [esi + 0xe8]
add ebx, 0x11d6
mov eax, dword [0x566634]
sub ecx, 0xb05d6
mov dword [eax + 0x11c], ecx
mov eax, dword [0x566634]
mov eax, dword [eax + 0x108]
sub eax, 0x1119f9d0
mov dword [0x5726d8], eax
jmp 0x404b43
mov ebp, dword [esp + 0x34]
mov eax, dword [ebp + 0x60]
or eax, edx
or eax, 0x11d6
cmp dword [ebp + 8], eax
jb 0x404b43
mov eax, esi
sub eax, edi
imul ecx, eax, 0x1eac
mov eax, dword [0x566634]
cmp dword [eax + 8], ecx
jne 0x404b43
mov eax, dword [ebp + 0x70]
add eax, dword [0x572754]
xor eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov eax, dword [esp + 0x38]
add eax, 0xffffeb94
xor dword [0x572734], eax
mov eax, dword [0x572660]
or eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x566634]
mov edi, dword [ebp + 0xe0]
or edi, ebx
imul edi, esi
mov eax, dword [ecx + 0x98]
or eax, dword [0x572660]
imul eax, eax, 0x105c
or eax, edi
or eax, dword [esp + 0x14]
or dword [ecx + 0xec], eax
mov eax, dword [0x566634]
mov ecx, dword [ebp + 0xe0]
sub ecx, 0x222b
mov eax, dword [eax + 0x10c]
sub eax, dword [esp + 0x10]
sub eax, 0x20f1
xor ebx, eax
mov eax, dword [ebp + 0x6c]
and eax, dword [0x572770]
and eax, ebx
sub dword [ebp + 0x130], eax
mov eax, dword [0x566634]
mov dword [eax + 0x120], ecx
mov eax, dword [0x566634]
mov eax, dword [eax + 0x98]
imul eax, dword [esp + 0x38]
add eax, dword [ebp + 0x44]
push eax
mov eax, dword [esp + 0x2c]
and eax, dword [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov eax, dword [ebp + 0xdc]
or edi, dword [esp + 0x18]
imul eax, ebx
sub eax, 0x11d6
or dword [0x572678], eax
add edi, dword [ebp + 0x78]
imul edi, dword [ebp + 0x78]
mov dword [ebp + 0x78], edi
mov edx, dword [0x566634]
mov esi, dword [ebp + 0xe0]
mov eax, dword [edx + 0xd8]
add eax, dword [ebp + 0x114]
mov ecx, dword [edx + 0x18]
imul edx, eax, 0x20f1
add ecx, 0xffffdf0f
mov eax, dword [ebp + 0x118]
add esi, ecx
and eax, dword [0x5726e0]
mov ecx, dword [esp + 0x1c]
or eax, 0x222b
push eax
mov eax, dword [esp + 0x2c]
add ecx, edi
push ebp
add eax, eax
push eax
push ecx
push edx
push esi
call fcn.00404721
and eax, dword [esp + 0x28]
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop edi
pop esi
pop ebp
lea eax, [ebx - 0x3e]
pop ebx
add esp, 0x10
ret