Function at 0x584c80
Capabilities:
Create directory
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5898e3
mov eax, dword fs:[0]
push eax
mov eax, 0x12cc
call fcn.00450720
mov eax, dword [0x5ed130]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 2
mov dword [ebp - 0x11b8], 0
push 8
call fcn.0043faf6
add esp, 4
mov dword [ebp - 0x11c4], eax
mov eax, dword [ebp - 0x11c4]
mov dword [ebp - 0x6c], eax
push 0x50
call fcn.0043faf6
add esp, 4
mov dword [ebp - 0x11c8], eax
mov ecx, dword [ebp - 0x11c8]
mov dword [ebp - 0x14], ecx
lea edx, [ebp + 8]
push edx
lea ecx, [ebp - 0x68]
call fcn.004015c0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x68]
call fcn.00401700
push eax
call fcn.00566d80
add esp, 4
mov dword [ebp - 0x11b8], eax
cmp dword [ebp - 0x11b8], 0
jne 0x584d9a
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x11cc], eax
mov ecx, dword [ebp - 0x11cc]
push ecx
call fcn.0043deaa
add esp, 4
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x11d0], edx
mov eax, dword [ebp - 0x11d0]
push eax
call fcn.0043deaa
add esp, 4
mov dword [ebp - 0x11d4], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x68]
call fcn.00401600
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.00401600
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x24]
call fcn.00401600
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x40]
call fcn.00401600
mov eax, dword [ebp - 0x11d4]
jmp 0x58563e
mov ecx, dword [ebp - 0x6c]
push ecx
mov edx, dword [ebp - 0x11b8]
push edx
call fcn.005653a0
add esp, 8
test eax, eax
je 0x584e29
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x11d8], eax
mov ecx, dword [ebp - 0x11d8]
push ecx
call fcn.0043deaa
add esp, 4
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x11dc], edx
mov eax, dword [ebp - 0x11dc]
push eax
call fcn.0043deaa
add esp, 4
mov dword [ebp - 0x11e0], 2
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x68]
call fcn.00401600
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.00401600
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x24]
call fcn.00401600
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x40]
call fcn.00401600
mov eax, dword [ebp - 0x11e0]
jmp 0x58563e
push 0x5db156
lea ecx, [ebp - 0x11b0]
call fcn.00401580
mov byte [ebp - 4], 4
push 0x5db157
lea ecx, [ebp - 0x1190]
call fcn.00401580
mov byte [ebp - 4], 5
push 0x5db15a
lea ecx, [ebp - 0x4c]
call fcn.00401580
mov byte [ebp - 4], 6
push 0x5db15b
lea ecx, [ebp - 0x30]
call fcn.00401580
mov byte [ebp - 4], 7
mov cl, byte [0x5db15f]
mov byte [ebp - 0x174], cl
push 0x103
push 0
lea edx, [ebp - 0x173]
push edx
call fcn.0043fa10
add esp, 0xc
mov al, byte [0x5db163]
mov byte [ebp - 0x1174], al
push 0xfff
push 0
lea ecx, [ebp - 0x1173]
push ecx
call fcn.0043fa10
add esp, 0xc
mov dword [ebp - 0x11b4], 0
mov dword [ebp - 0x1194], 0
mov dword [ebp - 0x11bc], 0
jmp 0x584ee5
mov edx, dword [ebp - 0x11bc]
add edx, 1
mov dword [ebp - 0x11bc], edx
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x11bc]
cmp ecx, dword [eax]
jae 0x5855ad
push 0
push 0
push 0
push 0
push 0x104
lea edx, [ebp - 0x174]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x11b8]
push ecx
call fcn.00566a30
add esp, 0x20
test eax, eax
je 0x584f9f
mov dword [ebp - 0x11e4], 3
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x30]
call fcn.00401600
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x4c]
call fcn.00401600
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1190]
call fcn.00401600
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x11b0]
call fcn.00401600
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x68]
call fcn.00401600
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.00401600
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x24]
call fcn.00401600
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x40]
call fcn.00401600
mov eax, dword [ebp - 0x11e4]
jmp 0x58563e
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x34]
mov dword [ebp - 0x12a8], eax
cmp dword [ebp - 0x12a8], 0x10
je 0x584fcf
cmp dword [ebp - 0x12a8], 0x20
je 0x5850bc
cmp dword [ebp - 0x12a8], 0x30
je 0x584fcf
jmp 0x585599
lea ecx, [ebp - 0x174]
push ecx
lea ecx, [ebp - 0x11b0]
call fcn.00401640
push 0x5dbc10
lea ecx, [ebp - 0x1200]
call fcn.00401580
mov dword [ebp - 0x12ac], eax
mov edx, dword [ebp - 0x12ac]
mov dword [ebp - 0x12b0], edx
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x12b0]
push eax
lea ecx, [ebp + 0x24]
push ecx
lea edx, [ebp - 0x121c]
push edx
call fcn.0042a730
add esp, 0xc
mov dword [ebp - 0x12b4], eax
mov eax, dword [ebp - 0x12b4]
mov dword [ebp - 0x12b8], eax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x11b0]
push ecx
mov edx, dword [ebp - 0x12b8]
push edx
lea eax, [ebp - 0x1238]
push eax
call fcn.0042a730
add esp, 0xc
mov dword [ebp - 0x12bc], eax
mov ecx, dword [ebp - 0x12bc]
mov dword [ebp - 0x12c0], ecx
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x12c0]
push edx
lea ecx, [ebp - 0x30]
call fcn.00401620
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x1238]
call fcn.00401600
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x121c]
call fcn.00401600
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x1200]
call fcn.00401600
push 0
lea ecx, [ebp - 0x30]
call fcn.00401700
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x585599
lea eax, [ebp - 0x174]
push eax
lea ecx, [ebp - 0x11b0]
call fcn.00401640
push 0x5dbc14
lea ecx, [ebp - 0x1254]
call fcn.00401580
mov dword [ebp - 0x12c4], eax
mov ecx, dword [ebp - 0x12c4]
mov dword [ebp - 0x12c8], ecx
mov byte [ebp - 4], 0xb
mov edx, dword [ebp - 0x12c8]
push edx
lea eax, [ebp + 0x24]
push eax
lea ecx, [ebp - 0x1270]
push ecx
call fcn.0042a730
add esp, 0xc
mov dword [ebp - 0x12cc], eax
mov edx, dword [ebp - 0x12cc]
mov dword [ebp - 0x12d0], edx
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x11b0]
push eax
mov ecx, dword [ebp - 0x12d0]
push ecx
lea edx, [ebp - 0x128c]
push edx
call fcn.0042a730
add esp, 0xc
mov dword [ebp - 0x12d4], eax
mov eax, dword [ebp - 0x12d4]
mov dword [ebp - 0x12d8], eax
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x12d8]
push ecx
lea ecx, [ebp - 0x30]
call fcn.00401620
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x128c]
call fcn.00401600
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x1270]
call fcn.00401600
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x1254]
call fcn.00401600
push 0
push accept
push 2
push 0
push 0
push 0x40000000
lea ecx, [ebp - 0x30]
call fcn.00401700
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x11c0], eax
cmp dword [ebp - 0x11c0], 0xffffffff
jne 0x585241
mov dword [ebp - 0x1290], 4
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x30]
call fcn.00401600
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x4c]
call fcn.00401600
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1190]
call fcn.00401600
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x11b0]
call fcn.00401600
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x68]
call fcn.00401600
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.00401600
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x24]
call fcn.00401600
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x40]
call fcn.00401600
mov eax, dword [ebp - 0x1290]
jmp 0x58563e
lea ecx, [ebp + 0x40]
call fcn.00438d80
test eax, eax
jne 0x5852f8
mov edx, dword [ebp - 0x11b8]
push edx
call fcn.00566d60
add esp, 4
test eax, eax
je 0x5852f3
mov eax, dword [ebp - 0x11c0]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1294], 6
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x30]
call fcn.00401600
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x4c]
call fcn.00401600
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1190]
call fcn.00401600
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x11b0]
call fcn.00401600
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x68]
call fcn.00401600
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.00401600
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x24]
call fcn.00401600
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x40]
call fcn.00401600
mov eax, dword [ebp - 0x1294]
jmp 0x58563e
jmp 0x5853a3
lea ecx, [ebp + 0x40]
call fcn.00401700
push eax
mov ecx, dword [ebp - 0x11b8]
push ecx
call fcn.00566d40
add esp, 8
test eax, eax
je 0x5853a3
mov edx, dword [ebp - 0x11c0]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1298], 5
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x30]
call fcn.00401600
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x4c]
call fcn.00401600
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1190]
call fcn.00401600
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x11b0]
call fcn.00401600
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x68]
call fcn.00401600
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.00401600
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x24]
call fcn.00401600
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x40]
call fcn.00401600
mov eax, dword [ebp - 0x1298]
jmp 0x58563e
mov eax, 1
test eax, eax
je 0x585599
mov dword [ebp - 0x11b4], 0
push 0x1000
push 0
lea ecx, [ebp - 0x1174]
push ecx
call fcn.0043fa10
add esp, 0xc
push 0x1000
lea edx, [ebp - 0x1174]
push edx
mov eax, dword [ebp - 0x11b8]
push eax
call fcn.00565720
add esp, 0xc
mov dword [ebp - 0x11b4], eax
cmp dword [ebp - 0x11b4], 0
jge 0x58549d
mov ecx, dword [ebp - 0x11b8]
push ecx
call fcn.00565250
add esp, 4
mov edx, dword [ebp - 0x11c0]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x129c], 7
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x30]
call fcn.00401600
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x4c]
call fcn.00401600
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1190]
call fcn.00401600
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x11b0]
call fcn.00401600
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x68]
call fcn.00401600
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.00401600
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x24]
call fcn.00401600
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x40]
call fcn.00401600
mov eax, dword [ebp - 0x129c]
jmp 0x58563e
cmp dword [ebp - 0x11b4], 0
jne 0x5854cc
mov eax, dword [ebp - 0x11b8]
push eax
call fcn.00565250
add esp, 4
mov ecx, dword [ebp - 0x11c0]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x585599
push 0
lea edx, [ebp - 0x1194]
push edx
mov eax, dword [ebp - 0x11b4]
push eax
lea ecx, [ebp - 0x1174]
push ecx
mov edx, dword [ebp - 0x11c0]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x585594
mov eax, dword [ebp - 0x11b8]
push eax
call fcn.00565250
add esp, 4
mov ecx, dword [ebp - 0x11c0]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x12a0], eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x30]
call fcn.00401600
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x4c]
call fcn.00401600
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1190]
call fcn.00401600
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x11b0]
call fcn.00401600
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x68]
call fcn.00401600
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.00401600
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x24]
call fcn.00401600
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x40]
call fcn.00401600
mov eax, dword [ebp - 0x12a0]
jmp 0x58563e
jmp 0x5853a3
mov edx, dword [ebp - 0x11b8]
push edx
call fcn.005668e0
add esp, 4
jmp 0x584ed6
cmp dword [ebp - 0x11b8], 0
je 0x5855c5
mov eax, dword [ebp - 0x11b8]
push eax
call fcn.005653d0
add esp, 4
mov dword [ebp - 0x12a4], 0xffffffff
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x30]
call fcn.00401600
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x4c]
call fcn.00401600
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1190]
call fcn.00401600
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x11b0]
call fcn.00401600
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x68]
call fcn.00401600
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.00401600
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x24]
call fcn.00401600
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x40]
call fcn.00401600
mov eax, dword [ebp - 0x12a4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043dd0c
mov esp, ebp
pop ebp
ret