Function at 0x413714
Capabilities:
Create directory
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0
push 0xc
call fcn.0045c3dc
add esp, 4
mov dword [ebp - 8], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
push 0x1c
call fcn.004139a6
mov dword [ebp - 0xc], eax
call fcn.00413cb6
push 0x80000401
push edx
push eax
push 1
mov ebx, 0x168
call fcn.0045d360
add esp, 0x10
mov dword [ebp - 0x18], eax
push dword [ebp - 0x18]
push str.Temp_
push dword [ebp - 0xc]
mov ecx, 3
call fcn.00401899
add esp, 0xc
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x4137a3
push ebx
call fcn.0045c3e2
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x4137b3
push ebx
call fcn.0045c3e2
add esp, 4
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4137c7
push ebx
call fcn.0045c3e2
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], esp
push dword [ebp - 8]
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x4137fa
push 0x7a
push 0x4028703
push 6
call fcn.0045c3d0
add esp, 0xc
push str....._
push dword [ebp - 4]
mov ecx, 2
call fcn.00401899
add esp, 8
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
push dword [ebp - 8]
push dword [ebp - 0xc]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x413841
push 0xad
push 0x4028703
push 6
call fcn.0045c3d0
add esp, 0xc
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x413851
push ebx
call fcn.0045c3e2
add esp, 4
push str.....TemporaryFile
push dword [ebp - 4]
mov ecx, 2
call fcn.00401899
add esp, 8
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
push dword [ebp - 0xc]
mov ebx, dword [ebp + 8]
push dword [ebx]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x41389a
push 0xf4
push 0x4028703
push 6
call fcn.0045c3d0
add esp, 0xc
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x4138aa
push ebx
call fcn.0045c3e2
add esp, 4
push str....._
push dword [ebp - 4]
mov ecx, 2
call fcn.00401899
add esp, 8
mov dword [ebp - 0xc], eax
push str.TemporaryFile
push dword [ebp - 4]
mov ecx, 2
call fcn.00401899
add esp, 8
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], esp
push dword [ebp - 0x10]
push dword [ebp - 0xc]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x413909
push 0x160
push 0x4028703
push 6
call fcn.0045c3d0
add esp, 0xc
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x413919
push ebx
call fcn.0045c3e2
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x413929
push ebx
call fcn.0045c3e2
add esp, 4
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x41393c
mov eax, 0x4832bb
push eax
push 1
mov ebx, 0x238
call fcn.0045e580
add esp, 0x10
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x413964
mov eax, 0x4832bb
push eax
push 1
mov ebx, 0x24c
call fcn.0045e5d0
add esp, 0x10
and eax, 1
xor eax, 1
jmp 0x413982
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x413993
push ebx
call fcn.0045c3e2
add esp, 4
mov ebx, dword [ebp - 8]
push ebx
call fcn.0045c3e2
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4