Function at 0x4564a0
Capabilities:
Check if file exists
Create directory
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x522eb4
mov eax, dword fs:[0]
push eax
sub esp, 0x534
mov eax, dword [0x580ca0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x528], ecx
mov eax, dword [ebp - 0x528]
cmp dword [eax + 0x54], 0
je 0x456511
push 0
push 0x1a
mov ecx, 0x585ca8
call fcn.004756c0
push eax
push 0x19
mov ecx, 0x585ca8
call fcn.004756c0
push eax
mov ecx, dword [ebp - 0x528]
add ecx, 4
call fcn.004590e0
mov eax, 1
jmp 0x456d86
mov ecx, dword [ebp - 0x528]
movzx edx, byte [ecx + 0x68]
test edx, edx
je 0x456526
xor eax, eax
jmp 0x456d86
push 0
push 0x3023
lea eax, [ebp - 0x45c]
push eax
lea ecx, [ebp - 0x458]
push ecx
mov ecx, dword [ebp - 0x528]
add ecx, 4
call fcn.00459080
mov ecx, eax
call fcn.004590b0
mov ecx, eax
call fcn.0045cf10
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 0
push 2
lea edx, [ebp - 0x464]
push edx
lea eax, [ebp - 0x460]
push eax
mov ecx, dword [ebp - 0x528]
add ecx, 4
call fcn.00459080
mov ecx, eax
call fcn.004590b0
mov ecx, eax
call fcn.0045cf10
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 0
push 0x3024
lea ecx, [ebp - 0x46c]
push ecx
lea edx, [ebp - 0x468]
push edx
mov ecx, dword [ebp - 0x528]
add ecx, 4
call fcn.00459140
mov ecx, eax
call fcn.004590b0
mov ecx, eax
call fcn.00458fe0
xor eax, eax
mov word [ebp - 0x424], ax
push 0x206
push 0
lea ecx, [ebp - 0x422]
push ecx
call fcn.004ba280
add esp, 0xc
push 0x104
lea edx, [ebp - 0x424]
push edx
push 0x3ec
mov ecx, dword [ebp - 0x528]
add ecx, 4
call fcn.00459020
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea ecx, [ebp - 0x424]
push ecx
push 0x3ec
mov ecx, dword [ebp - 0x528]
add ecx, 4
call fcn.00459050
lea edx, [ebp - 0x424]
push edx
mov ecx, 0x585bd8
call fcn.0040b170
movzx eax, word [ebp - 0x424]
test eax, eax
jne 0x45673c
push 0
push 0x1a
mov ecx, 0x585ca8
call fcn.004756c0
push eax
push 0x1b
mov ecx, 0x585ca8
call fcn.004756c0
push eax
mov ecx, dword [ebp - 0x528]
add ecx, 4
call fcn.004590e0
push 1
push 0x3023
lea ecx, [ebp - 0x474]
push ecx
lea edx, [ebp - 0x470]
push edx
mov ecx, dword [ebp - 0x528]
add ecx, 4
call fcn.00459080
mov ecx, eax
call fcn.004590b0
mov ecx, eax
call fcn.0045cf10
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 1
push 2
lea eax, [ebp - 0x47c]
push eax
lea ecx, [ebp - 0x478]
push ecx
mov ecx, dword [ebp - 0x528]
add ecx, 4
call fcn.00459080
mov ecx, eax
call fcn.004590b0
mov ecx, eax
call fcn.0045cf10
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 1
push 0x3024
lea edx, [ebp - 0x484]
push edx
lea eax, [ebp - 0x480]
push eax
mov ecx, dword [ebp - 0x528]
add ecx, 4
call fcn.00459140
mov ecx, eax
call fcn.004590b0
mov ecx, eax
call fcn.00458fe0
push 0x3ec
lea ecx, [ebp - 0x488]
push ecx
mov ecx, dword [ebp - 0x528]
add ecx, 4
call fcn.004590b0
mov ecx, eax
call fcn.00459000
mov eax, 1
jmp 0x456d86
lea edx, [ebp - 0x424]
push edx
mov ecx, dword [ebp - 0x528]
call fcn.00455d90
test eax, eax
jne 0x456849
push 0
push 0x1a
mov ecx, 0x585ca8
call fcn.004756c0
push eax
push 0x1c
mov ecx, 0x585ca8
call fcn.004756c0
push eax
mov ecx, dword [ebp - 0x528]
add ecx, 4
call fcn.004590e0
push 1
push 0x3023
lea eax, [ebp - 0x490]
push eax
lea ecx, [ebp - 0x48c]
push ecx
mov ecx, dword [ebp - 0x528]
add ecx, 4
call fcn.00459080
mov ecx, eax
call fcn.004590b0
mov ecx, eax
call fcn.0045cf10
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 1
push 2
lea edx, [ebp - 0x498]
push edx
lea eax, [ebp - 0x494]
push eax
mov ecx, dword [ebp - 0x528]
add ecx, 4
call fcn.00459080
mov ecx, eax
call fcn.004590b0
mov ecx, eax
call fcn.0045cf10
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 1
push 0x3024
lea ecx, [ebp - 0x4a0]
push ecx
lea edx, [ebp - 0x49c]
push edx
mov ecx, dword [ebp - 0x528]
add ecx, 4
call fcn.00459140
mov ecx, eax
call fcn.004590b0
mov ecx, eax
call fcn.00458fe0
push 0x3ec
lea eax, [ebp - 0x4a4]
push eax
mov ecx, dword [ebp - 0x528]
add ecx, 4
call fcn.004590b0
mov ecx, eax
call fcn.00459000
mov eax, 1
jmp 0x456d86
mov ecx, dword [ebp - 0x528]
add ecx, 0x6c
call fcn.004589c0
lea ecx, [ebp - 0x424]
push ecx
mov ecx, dword [ebp - 0x528]
call fcn.00455ea0
lea edx, [ebp - 0x44c]
push edx
mov ecx, dword [ebp - 0x528]
add ecx, 0x6c
call fcn.0045dd60
jmp 0x456894
push 0
lea eax, [ebp - 0x4ac]
push eax
lea ecx, [ebp - 0x44c]
call fcn.00458ac0
lea ecx, [ebp - 0x4b4]
push ecx
mov ecx, dword [ebp - 0x528]
add ecx, 0x6c
call fcn.00458950
push eax
lea ecx, [ebp - 0x44c]
call fcn.00458b00
movzx edx, al
test edx, edx
je 0x4568f6
lea ecx, [ebp - 0x44c]
call fcn.0045e090
mov ecx, eax
call fcn.00429580
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4568f4
lea ecx, [ebp - 0x44c]
call fcn.0045e090
mov ecx, eax
call fcn.00429580
push eax
call fcn.00439840
add esp, 4
jmp 0x456880
lea eax, [ebp - 0x424]
push eax
mov ecx, dword [ebp - 0x528]
call fcn.00455ea0
mov ecx, dword [ebp - 0x528]
add ecx, 0x6c
call fcn.004589c0
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
lea ecx, [ebp - 0x424]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor edx, edx
mov word [ebp - 0x21c], dx
push 0x206
push 0
lea eax, [ebp - 0x21a]
push eax
call fcn.004ba280
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x21c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x52f204
push 0x52f238
push 0x585bd8
lea edx, [ebp - 0x4d0]
push edx
call fcn.0043bd20
add esp, 0xc
mov dword [ebp - 0x52c], eax
mov eax, dword [ebp - 0x52c]
mov dword [ebp - 0x530], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x530]
push ecx
lea edx, [ebp - 0x444]
push edx
call fcn.0043bd20
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4d0]
call fcn.00401320
push 0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x4d4], esp
lea eax, [ebp - 0x444]
push eax
call fcn.0040e030
mov dword [ebp - 0x534], eax
call fcn.0045a4f0
add esp, 0x20
movzx ecx, word [ebp - 0x424]
push ecx
call fcn.004c17f1
add esp, 4
mov word [ebp - 0x10], ax
movzx edx, word [ebp - 0x10]
cmp edx, 0x41
jl 0x456a10
movzx eax, word [ebp - 0x10]
cmp eax, 0x5a
jle 0x456b31
push 0x124
push 9
mov ecx, 0x585ca8
call fcn.004756c0
push eax
push 0x27
mov ecx, 0x585ca8
call fcn.004756c0
push eax
mov ecx, dword [ebp - 0x528]
add ecx, 4
call fcn.004590e0
cmp eax, 6
je 0x456b2c
push 1
push 0x3023
lea ecx, [ebp - 0x4dc]
push ecx
lea edx, [ebp - 0x4d8]
push edx
mov ecx, dword [ebp - 0x528]
add ecx, 4
call fcn.00459080
mov ecx, eax
call fcn.004590b0
mov ecx, eax
call fcn.0045cf10
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 1
push 2
lea eax, [ebp - 0x4e4]
push eax
lea ecx, [ebp - 0x4e0]
push ecx
mov ecx, dword [ebp - 0x528]
add ecx, 4
call fcn.00459080
mov ecx, eax
call fcn.004590b0
mov ecx, eax
call fcn.0045cf10
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 1
push 0x3024
lea edx, [ebp - 0x4ec]
push edx
lea eax, [ebp - 0x4e8]
push eax
mov ecx, dword [ebp - 0x528]
add ecx, 4
call fcn.00459140
mov ecx, eax
call fcn.004590b0
mov ecx, eax
call fcn.00458fe0
push 0x3ec
lea ecx, [ebp - 0x4f0]
push ecx
mov ecx, dword [ebp - 0x528]
add ecx, 4
call fcn.004590b0
mov ecx, eax
call fcn.00459000
mov dword [ebp - 0x4f4], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x444]
call fcn.00401320
mov eax, dword [ebp - 0x4f4]
jmp 0x456d86
jmp 0x456c97
mov dword [ebp - 0x454], 0x1000000
mov dword [ebp - 0x450], 0
movzx edx, word [ebp - 0x424]
push edx
call fcn.00456430
add esp, 4
mov dword [ebp - 0x53c], eax
mov dword [ebp - 0x538], edx
mov eax, dword [ebp - 0x538]
cmp eax, dword [ebp - 0x450]
ja 0x456c97
jb 0x456b87
mov ecx, dword [ebp - 0x53c]
cmp ecx, dword [ebp - 0x454]
jae 0x456c97
push 0
push 9
mov ecx, 0x585ca8
call fcn.004756c0
push eax
push 0x28
mov ecx, 0x585ca8
call fcn.004756c0
push eax
mov ecx, dword [ebp - 0x528]
add ecx, 4
call fcn.004590e0
push 1
push 0x3023
lea edx, [ebp - 0x4fc]
push edx
lea eax, [ebp - 0x4f8]
push eax
mov ecx, dword [ebp - 0x528]
add ecx, 4
call fcn.00459080
mov ecx, eax
call fcn.004590b0
mov ecx, eax
call fcn.0045cf10
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 1
push 2
lea ecx, [ebp - 0x504]
push ecx
lea edx, [ebp - 0x500]
push edx
mov ecx, dword [ebp - 0x528]
add ecx, 4
call fcn.00459080
mov ecx, eax
call fcn.004590b0
mov ecx, eax
call fcn.0045cf10
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 1
push 0x3024
lea eax, [ebp - 0x50c]
push eax
lea ecx, [ebp - 0x508]
push ecx
mov ecx, dword [ebp - 0x528]
add ecx, 4
call fcn.00459140
mov ecx, eax
call fcn.004590b0
mov ecx, eax
call fcn.00458fe0
push 0x3ec
lea edx, [ebp - 0x510]
push edx
mov ecx, dword [ebp - 0x528]
add ecx, 4
call fcn.004590b0
mov ecx, eax
call fcn.00459000
mov dword [ebp - 0x514], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x444]
call fcn.00401320
mov eax, dword [ebp - 0x514]
jmp 0x456d86
mov eax, dword [ebp - 0x528]
mov dword [eax + 0x54], 1
push 1
push 0x3f0
lea ecx, [ebp - 0x518]
push ecx
mov ecx, dword [ebp - 0x528]
add ecx, 4
call fcn.004590b0
mov ecx, eax
call fcn.00458f70
push 1
push 0x3ee
lea edx, [ebp - 0x51c]
push edx
mov ecx, dword [ebp - 0x528]
add ecx, 4
call fcn.004590b0
mov ecx, eax
call fcn.00458f70
push 0
push 0x64
push 0x64
mov ecx, dword [ebp - 0x528]
add ecx, 4
call fcn.00458f90
mov ecx, dword [ebp - 0x528]
mov dword [ecx + 0x64], eax
push 0
push 0
mov edx, dword [ebp - 0x528]
push edx
push fcn.00456380
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x428], eax
cmp dword [ebp - 0x428], 0
je 0x456d3d
mov eax, dword [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x520], esp
lea edx, [ebp - 0x444]
push edx
call fcn.0040e030
mov dword [ebp - 0x540], eax
call fcn.0045a4f0
add esp, 0x20
mov dword [ebp - 0x524], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x444]
call fcn.00401320
mov eax, dword [ebp - 0x524]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004ba1db
mov esp, ebp
pop ebp
ret