Function at 0x596990
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59c701
mov eax, dword fs:[0]
push eax
sub esp, 0x2c0
mov eax, dword [0x5e632c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2bc], ecx
mov eax, dword [ebp - 0x2bc]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp + 8]
jle 0x5969d4
jmp 0x596e0a
lea edx, [ebp - 0x278]
push edx
call fcn.00401a40
add esp, 4
mov dword [ebp - 0x2c0], eax
mov eax, dword [ebp - 0x2c0]
mov dword [ebp - 0x2c4], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x2c4]
call fcn.004287b0
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401ce0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x278]
call fcn.0042f130
push str.log
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x294]
push edx
call fcn.004031f0
add esp, 0xc
mov dword [ebp - 0x2c8], eax
push 0
mov ecx, dword [ebp - 0x2c8]
call fcn.004053d0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [ebp - 0x294]
call fcn.00401d20
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x268]
call fcn.00401ce0
mov byte [ebp - 4], 3
mov ecx, dword [0x5cb030]
push ecx
push 0x5c
lea ecx, [ebp - 0x268]
call fcn.00453cd0
mov dword [ebp - 0x26c], eax
mov edx, dword [ebp - 0x26c]
cmp edx, dword [0x5cb030]
jne 0x596aa3
mov dword [ebp - 0x26c], 0
jmp 0x596ab2
mov eax, dword [ebp - 0x26c]
add eax, 1
mov dword [ebp - 0x26c], eax
lea ecx, [ebp - 0x23c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov word [ebp - 0x22c], 0
push 0x1fc
push 0
lea edx, [ebp - 0x22a]
push edx
call fcn.004bbbe0
add esp, 0xc
mov ecx, dword [ebp - 0x2bc]
call fcn.00401640
mov ecx, dword [ebp - 0x2bc]
add ecx, 0x34
call fcn.00401b60
movzx eax, al
test eax, eax
jne 0x596bd8
movzx ecx, word [ebp - 0x236]
mov edx, dword [ebp - 0x2bc]
cmp dword [edx + 0x14], ecx
je 0x596bd8
mov eax, dword [ebp - 0x2bc]
cmp dword [eax + 0x10], 0
je 0x596b36
mov ecx, dword [ebp - 0x2bc]
mov edx, dword [ecx + 0x10]
push edx
call fcn.004b9608
add esp, 4
movzx eax, word [ebp - 0x236]
mov ecx, dword [ebp - 0x2bc]
mov dword [ecx + 0x14], eax
mov edx, dword [ebp - 0x2bc]
movzx eax, byte [edx + 0x50]
test eax, eax
je 0x596bb3
movzx ecx, word [ebp - 0x236]
push ecx
movzx edx, word [ebp - 0x23a]
push edx
movzx eax, word [ebp - 0x23c]
push eax
mov ecx, dword [ebp - 0x2bc]
add ecx, 0x34
call fcn.004053d0
push eax
push 0x5cae60
push 0xff
lea ecx, [ebp - 0x22c]
push ecx
call fcn.004b92f0
add esp, 0x1c
push 0x5cae88
lea edx, [ebp - 0x22c]
push edx
call fcn.004b974a
add esp, 8
mov ecx, dword [ebp - 0x2bc]
mov dword [ecx + 0x10], eax
jmp 0x596bd8
push 0x5cae90
mov ecx, dword [ebp - 0x2bc]
add ecx, 0x34
call fcn.004053d0
push eax
call fcn.004b974a
add esp, 8
mov edx, dword [ebp - 0x2bc]
mov dword [edx + 0x10], eax
lea ecx, [ebp - 0x24c]
call fcn.00401e30
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x2bc]
add eax, 0x10
push eax
lea ecx, [ebp - 0x24c]
call fcn.00401e60
lea ecx, [ebp - 0x274]
push ecx
lea ecx, [ebp - 0x24c]
call fcn.0042d360
jmp 0x596c1b
lea ecx, [ebp - 0x274]
call fcn.00434b70
lea edx, [ebp - 0x29c]
push edx
lea ecx, [ebp - 0x24c]
call fcn.004353a0
push eax
lea ecx, [ebp - 0x274]
call fcn.0043c490
movzx eax, al
test eax, eax
je 0x596dd2
lea ecx, [ebp - 0x274]
call fcn.00434ea0
cmp dword [eax], 0
je 0x596dcd
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
mov ecx, dword [ebp - 0x2bc]
add ecx, 0x18
call fcn.004053d0
push eax
push 0x5cae98
lea ecx, [ebp - 0x274]
call fcn.00434ea0
mov ecx, dword [eax]
push ecx
call fcn.004b975d
add esp, 0x10
movzx edx, word [ebp - 0x236]
push edx
movzx eax, word [ebp - 0x23a]
push eax
movzx ecx, word [ebp - 0x23c]
push ecx
push 0x5caeb0
lea ecx, [ebp - 0x274]
call fcn.00434ea0
mov edx, dword [eax]
push edx
call fcn.004b975d
add esp, 0x14
movzx eax, word [ebp - 0x22e]
push eax
movzx ecx, word [ebp - 0x230]
push ecx
movzx edx, word [ebp - 0x232]
push edx
movzx eax, word [ebp - 0x234]
push eax
push 0x5caed0
lea ecx, [ebp - 0x274]
call fcn.00434ea0
mov ecx, dword [eax]
push ecx
call fcn.004b975d
add esp, 0x18
mov edx, dword [0x5cb030]
push edx
mov eax, dword [ebp - 0x26c]
push eax
lea ecx, [ebp - 0x2b8]
push ecx
lea ecx, [ebp - 0x268]
call fcn.00401db0
mov dword [ebp - 0x2cc], eax
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [ebp - 0x2cc]
call fcn.004053d0
push eax
push 0x5caefc
lea ecx, [ebp - 0x274]
call fcn.00434ea0
mov eax, dword [eax]
push eax
call fcn.004b975d
add esp, 0x10
lea ecx, [ebp - 0x2b8]
call fcn.00401d20
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x2bc]
call fcn.00401900
push eax
push 0x5caf10
lea ecx, [ebp - 0x274]
call fcn.00434ea0
mov edx, dword [eax]
push edx
call fcn.004b975d
add esp, 0xc
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
lea ecx, [ebp - 0x274]
call fcn.00434ea0
mov edx, dword [eax]
push edx
call fcn.004b9884
add esp, 0xc
push 0x5caf1c
lea ecx, [ebp - 0x274]
call fcn.00434ea0
mov eax, dword [eax]
push eax
call fcn.004b975d
add esp, 8
lea ecx, [ebp - 0x274]
call fcn.00434ea0
mov ecx, dword [eax]
push ecx
call fcn.004b9a1e
add esp, 4
jmp 0x596c10
mov ecx, dword [ebp - 0x2bc]
call fcn.004017f0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x24c]
call fcn.00430010
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x268]
call fcn.00401d20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00401d20
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b9002
mov esp, ebp
pop ebp
ret 0x14