Function at 0x406158
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov ebx, dword [0x813254]
add ebx, 0x50
mov dword [ebp - 0x14], ebx
push str.datamain_flashRole_
mov ebx, dword [ebp - 0x14]
push dword [ebx]
mov ecx, 2
call fcn.004010e5
add esp, 8
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4061be
push ebx
call fcn.00459866
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov ebx, dword [0x813254]
add ebx, 0x50
mov dword [ebp - 0x14], ebx
push str.datamain.dds
mov ebx, dword [ebp - 0x14]
push dword [ebx]
mov ecx, 2
call fcn.004010e5
add esp, 8
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
push 1
push 0
push dword [ebp - 0x18]
mov eax, 0
call fcn.0045ee80
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x406216
push ebx
call fcn.00459866
add esp, 4
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40622a
push ebx
call fcn.00459866
add esp, 4
pop eax
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
call fcn.00402637
and eax, 1
xor eax, 1
test eax, eax
je 0x40624e
lea eax, [ebp - 4]
push eax
call fcn.004065e2
push 0x46a225
push dword [ebp - 8]
call fcn.00401d3d
add esp, 8
cmp eax, 0
je 0x4063da
push dword [ebp - 8]
push dword [ebp - 4]
mov ecx, 2
call fcn.004010e5
add esp, 8
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
call fcn.0040257f
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x406299
push ebx
call fcn.00459866
add esp, 4
cmp dword [ebp - 0x18], 0
jne 0x406341
mov ebx, dword [0x813254]
add ebx, 0x50
mov dword [ebp - 0x14], ebx
push dword [ebp - 8]
push str.datamain_
mov ebx, dword [ebp - 0x14]
push dword [ebx]
mov ecx, 3
call fcn.004010e5
add esp, 0xc
mov dword [ebp - 0x18], eax
push dword [ebp - 8]
push dword [ebp - 4]
mov ecx, 2
call fcn.004010e5
add esp, 8
mov dword [ebp - 0x1c], eax
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x4062f5
mov eax, 0x46a225
push eax
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x406309
mov eax, 0x46a225
push eax
push 2
mov ebx, 0x240
call fcn.0045f5a0
add esp, 0x1c
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40632c
push ebx
call fcn.00459866
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40633c
push ebx
call fcn.00459866
add esp, 4
jmp 0x4063a0
mov ebx, dword [0x813254]
add ebx, 0x50
mov dword [ebp - 0x14], ebx
push dword [ebp - 8]
push str.datamain_
mov ebx, dword [ebp - 0x14]
push dword [ebx]
mov ecx, 3
call fcn.004010e5
add esp, 0xc
mov dword [ebp - 0x18], eax
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x40637d
mov eax, 0x46a225
push eax
push 1
mov ebx, 0x244
call fcn.0045e470
add esp, 0x10
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x4063a0
push ebx
call fcn.00459866
add esp, 4
lea eax, [ebp - 0x20]
push eax
push 1
push 0
push 0
mov eax, 0
call fcn.0045ee80
add esp, 0x10
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4063d1
push ebx
call fcn.00459866
add esp, 4
pop eax
mov dword [ebp - 8], eax
jmp 0x40624e
mov eax, str.C:Program_FilesProtect.sys
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x4063f0
push ebx
call fcn.00459866
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
mov eax, str.C:Program_FilesProtect.sysCON1.._
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40640a
push ebx
call fcn.00459866
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0040257f
test eax, eax
je 0x406477
push 0x80000301
push 0
push 0x20
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x40643e
mov eax, 0x46a225
push eax
push 2
mov ebx, 0x260
call fcn.0045eff0
add esp, 0x1c
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x406464
mov eax, 0x46a225
push eax
push 1
mov ebx, 0x244
call fcn.0045e470
add esp, 0x10
lea eax, [ebp - 0x10]
push eax
call fcn.00402637
and eax, 1
xor eax, 1
test eax, eax
je 0x40658e
push 0x80000101
push 0
push 0x5c
push 1
mov ebx, 0x140
call fcn.0045df60
add esp, 0x10
mov dword [ebp - 0x14], eax
push dword [ebp - 0x14]
push dword [ebp - 0xc]
mov ecx, 2
call fcn.004010e5
add esp, 8
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4064d5
push ebx
call fcn.00459866
add esp, 4
mov dword [ebp - 0x1c], esp
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
nop
nop
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x4064fc
push 6
call fcn.0045986c
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40650c
push ebx
call fcn.00459866
add esp, 4
mov dword [ebp - 0x14], esp
push 0
push str.C:Program_FilesProtect.sysCON_
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x406535
push 6
call fcn.0045986c
add esp, 4
mov dword [ebp - 0x14], esp
push 0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x40655c
push 6
call fcn.0045986c
add esp, 4
push 0x80000301
push 0
push 2
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x40657b
mov eax, 0x46a225
push eax
push 2
mov ebx, 0x260
call fcn.0045eff0
add esp, 0x1c
push dword [ebp - 0x20]
mov eax, 1
call fcn.0045efd0
add esp, 4
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4065ae
push ebx
call fcn.00459866
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4065be
push ebx
call fcn.00459866
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x4065ce
push ebx
call fcn.00459866
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x4065de
push ebx
call fcn.00459866
add esp, 4
mov esp, ebp
pop ebp
ret