Function at 0x404500
Capabilities:
Create directory
Delete file

Disassembly:
sub esp, 0xea0
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea eax, [ebp + 0x824]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea esi, [ebp + 0x414]
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0xaa0]
rep stosd dword es:[edi], eax
push esi
call fcn.00407fac
add esp, 4
cmp eax, 0x103
jbe 0x404546
mov eax, 0x103
jmp 0x40454f
push esi
call fcn.00407fac
add esp, 4
lea ecx, [eax + eax]
lea edi, [esp + 0xaa0]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea esi, [ebp + 0x61c]
mov ecx, 0x82
lea edi, [esp + 0x488]
push esi
rep stosd dword es:[edi], eax
call fcn.00407fac
add esp, 4
cmp eax, 0x103
jbe 0x404594
mov eax, 0x103
jmp 0x40459d
push esi
call fcn.00407fac
add esp, 4
lea ecx, [eax + eax]
lea edi, [esp + 0x488]
mov edx, ecx
mov ebx, dword [esp + 0xeb4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [ebx + ebx*4]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0x850]
lea ebx, [ebx + eax*8]
shl ebx, 6
lea eax, [esp + 0x488]
lea edx, [ebx + ecx + 0x410]
push edx
push eax
call fcn.00407eee
mov esi, dword [ebp + 0x850]
mov ecx, ebx
add ecx, esi
lea edx, [esp + 0x490]
push ecx
push edx
call fcn.00407eee
lea esi, [ebp + 0x20c]
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x88]
rep stosd dword es:[edi], eax
push esi
call fcn.00407fac
add esp, 0x14
cmp eax, 0x103
jbe 0x404625
mov eax, 0x103
jmp 0x40462e
push esi
call fcn.00407fac
add esp, 4
lea ecx, [eax + eax]
lea edi, [esp + 0x78]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x78]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0x850]
lea edx, [ebx + ecx + 0x820]
push edx
push eax
call fcn.00407eee
mov ecx, dword [ebp + 0x850]
xor eax, eax
lea edi, [esp + 0xcb0]
lea esi, [ebx + ecx + 0x618]
mov ecx, 0x82
rep stosd dword es:[edi], eax
push esi
call fcn.00407fac
add esp, 0xc
cmp eax, 0x103
jbe 0x40468f
mov eax, 0x103
jmp 0x404698
push esi
call fcn.00407fac
add esp, 4
lea ecx, [eax + eax]
lea edi, [esp + 0xca8]
mov edx, ecx
lea eax, [esp + 0x78]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov edx, dword [ebp + 0x850]
lea ecx, [esp + 0x78]
add ebx, edx
push ebx
push ecx
call fcn.00407eee
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add esp, 8
lea esi, [ebp + 0x824]
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [ebp + 0x848]
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [esp + 0xeb4]
push esi
mov dword [ebp + 0x860], edx
call edi
mov eax, dword [esp + 0xeb4]
push eax
push 0
push 0x5f4
push ebx
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x280]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x78]
push ecx
call fcn.00407fac
sub eax, 4
lea edx, [esp + 0x7c]
push eax
lea eax, [esp + 0x288]
push edx
push eax
call fcn.0040875f
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
add esp, 0x10
lea ecx, [esp + 0x280]
push ecx
call ebx
lea edx, [esp + 0x78]
lea eax, [esp + 0x488]
push edx
lea ecx, [esp + 0xaa4]
push eax
push ecx
mov ecx, ebp
call fcn.004044a0
mov esi, eax
test esi, esi
jbe 0x404883
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x691]
mov byte [esp + 0x690], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x899]
mov byte [esp + 0x898], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0
push 0
lea edx, [esp + 0x698]
push 0x208
stosb byte es:[edi], al
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push edx
lea eax, [esp + 0x88]
push 0xffffffffffffffff
push eax
push 0
push 0
call edi
push 0
push 0
lea ecx, [esp + 0x8a0]
push 0x208
push ecx
lea edx, [esp + 0x290]
push 0xffffffffffffffff
push edx
push 0
push 0
call edi
lea eax, [esp + 0x898]
lea ecx, [esp + 0x690]
push eax
push ecx
call fcn.00411c80
add esp, 8
test al, al
je 0x404878
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x10]
lea edx, [esp + 0x280]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
push edx
push eax
call fcn.00401eb0
add esp, 8
lea ecx, [esp + 0x34]
lea edx, [esp + 0x10]
push 0x21
push ecx
push 0xffffffffffffffff
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [esp + 0xca8]
lea ecx, [esp + 0x34]
push eax
push ecx
call fcn.00407fc9
add esp, 8
test eax, eax
je 0x40487a
xor esi, esi
lea edx, [esp + 0x78]
push edx
call ebx
test esi, esi
jne 0x40488f
lea eax, [esp + 0x280]
push eax
call ebx
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xea0
ret 4