Function at 0x4523e4
Capabilities:
Create directory
Delete file
Get common file path
Move file

Disassembly:
push ebp
sub esp, 0x4c8
lea ebp, [esp - 4]
mov eax, dword [0x7990a8]
xor eax, ebp
mov dword [ebp + 0x4c8], eax
push 0xac
mov eax, 0x696352
call fcn.00637b86
mov edi, ecx
mov dword [ebp - 0x18], edi
mov ebx, dword [ebp + 0x4d4]
xor eax, eax
mov esi, dword [ebp + 0x4d8]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x14], esi
cmp dword [edi + 0x3c], eax
jne 0x452627
lea eax, [ebp + 0xb8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
xor esi, esi
test eax, eax
jne 0x452467
push esi
push str.noSystemTempDir
lea ecx, [ebp + 0x1c]
call fcn.00455b8b
push 0x74575c
lea eax, [ebp + 0x1c]
push eax
call fcn.0064fa34
lea eax, [ebp + 0x2c0]
push eax
push esi
push str.HYDRA
lea eax, [ebp + 0xb8]
push eax
call dword [sym.imp.KERNEL32.DLL_GetTempFileNameW]
test eax, eax
jne 0x45248d
push esi
push str.cannotMakeTempFile
jmp 0x452451
push 1
push 2
lea ecx, [ebp - 0xb8]
call fcn.0044a832
push esi
mov dword [ebp - 4], 1
call fcn.006608ae
pop ecx
push edx
push eax
push 0x6bdd10
lea eax, [ebp + 0x2c0]
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.00426d32
push eax
call fcn.00426adf
mov ecx, eax
call fcn.0044b240
lea eax, [ebp + 0x84]
push eax
lea ecx, [ebp - 0xb8]
call fcn.00454e03
push eax
lea ecx, [ebp + 0x9c]
mov byte [ebp - 4], 2
call fcn.00445fb4
push esi
push 1
lea ecx, [ebp + 0x84]
mov byte [ebp - 4], 4
call fcn.004267c2
lea eax, [ebp + 0x2c0]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov ecx, edi
call fcn.00453f1a
test al, al
je 0x452583
lea eax, [ebp + 0xb8]
push eax
lea ecx, [ebp]
call fcn.00446021
mov eax, dword [ebp]
lea ecx, [ebp]
push str.HYDRA_AUTO_TEST_TEMP
mov byte [ebp - 4], 5
call dword [eax + 0x24]
cmp dword [ebp + 0xb4], 8
mov ecx, dword [ebp + 0xa0]
jae 0x452553
lea ecx, [ebp + 0xa0]
cmp dword [ebp + 0x18], 8
mov eax, dword [ebp + 4]
jae 0x45255f
lea eax, [ebp + 4]
push ecx
push eax
call fcn.006606d5
pop ecx
pop ecx
lea eax, [ebp + 4]
push eax
lea ecx, [ebp + 0xa0]
call fcn.00426283
lea ecx, [ebp]
mov byte [ebp - 4], 4
call fcn.004460a6
cmp dword [ebp + 0xb4], 8
mov eax, dword [ebp + 0xa0]
jae 0x452598
lea eax, [ebp + 0xa0]
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
jne 0x4525af
push esi
push str.failCreateTempDir
jmp 0x452451
push 0x1c
call fcn.00637305
pop ecx
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 6
test eax, eax
je 0x4525d2
lea ecx, [ebp + 0x9c]
push ecx
mov ecx, eax
call fcn.00445f3d
jmp 0x4525d4
mov eax, esi
mov dword [edi + 0x3c], eax
lea edi, [eax + 4]
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 4
push eax
mov ecx, edi
mov dword [ebp - 0x10], 0x5c
call fcn.00437fe7
mov ecx, edi
lea esi, [eax + 1]
push esi
call fcn.0040d7b5
push esi
mov ecx, edi
call fcn.0042670d
lea ecx, [ebp + 0x9c]
call fcn.004460a6
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 0
call fcn.0044b452
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
push dword [edi + 0x3c]
mov ecx, ebx
call fcn.00445f3d
and dword [ebp - 4], 0
mov dword [ebp - 0x1c], 1
test esi, esi
je 0x452659
cmp byte [esi], 0
je 0x452659
mov eax, dword [ebx]
mov ecx, ebx
push 0x6c10a8
call dword [eax + 0x24]
mov edx, dword [ebx]
mov ecx, ebx
push esi
call dword [edx + 0x24]
mov edx, dword [ebx]
mov ecx, ebx
push 0x6bdb00
call dword [edx + 0x24]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x4c8]
xor ecx, ebp
call fcn.00637b3e
lea esp, [ebp + 0x4cc]
pop ebp
ret 8