Function at 0x415900
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x4629d1
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x47f534]
xor eax, esp
push eax
lea eax, [esp + 0xa0]
mov dword fs:[0], eax
mov dword [esp + 0xa8], 1
mov eax, dword [esp + 0xb4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 1
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0xbc]
call fcn.004066f0
mov byte [esp + 0xa8], 2
mov eax, dword [eax]
push 0x46d2e8
push eax
call fcn.0044978e
add esp, 8
test eax, eax
setne bl
mov byte [esp + 0xa8], 1
lea ecx, [esp + 0x1c]
call fcn.00403830
test bl, bl
je 0x4159a0
push 1
push 0x46d2e8
lea ecx, [esp + 0xbc]
call fcn.00404ee0
lea ecx, [esp + 0x2c]
call fcn.00438e8b
mov byte [esp + 0xa8], 3
lea edx, [esp + 0xb0]
push edx
lea ecx, [esp + 0x24]
call fcn.00403630
mov byte [esp + 0xa8], 4
push 1
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x28]
call fcn.004066f0
mov byte [esp + 0xa8], 5
mov eax, dword [eax]
push 0x46d2e8
push eax
call fcn.0044978e
add esp, 8
test eax, eax
setne bl
mov byte [esp + 0xa8], 4
lea ecx, [esp + 0x1c]
call fcn.00403830
test bl, bl
je 0x415a1c
push 1
push 0x46d2e8
lea ecx, [esp + 0x28]
call fcn.00404ee0
push 3
push 0x46d2ec
lea ecx, [esp + 0x28]
call fcn.00404ee0
mov ecx, dword [esp + 0x20]
push 0
push ecx
lea ecx, [esp + 0x34]
call fcn.00438f17
test eax, eax
je 0x415fb8
mov ebp, dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [esp + 0x2c]
call fcn.00438d1c
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x54], eax
mov eax, dword [edx + 0x38]
push 0x10
lea ecx, [esp + 0x30]
call eax
test eax, eax
je 0x415b91
lea ecx, [esp + 0x2c]
call fcn.00438e52
test eax, eax
jne 0x415b91
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x30]
call fcn.004390b6
mov byte [esp + 0xa8], 6
lea edx, [esp + 0x5c]
push edx
lea ecx, [esp + 0x30]
call fcn.00439042
mov byte [esp + 0xa8], 7
push eax
lea eax, [esp + 0xb8]
push eax
lea ecx, [esp + 0x4c]
push ecx
call fcn.0040ade0
add esp, 0xc
mov byte [esp + 0xa8], 9
mov eax, dword [esp + 0x5c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x415ae9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0xbc]
mov edx, dword [esp + 0xb8]
mov eax, dword [esp + 0x44]
push ecx
push edx
push ecx
add eax, 0xfffffff0
mov esi, esp
mov dword [esp + 0x74], esp
push eax
mov dword [esp + 0x74], esi
call fcn.004036b0
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0xb8], 0xc
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov esi, esp
mov dword [esp + 0x74], esp
push eax
mov dword [esp + 0x80], esi
call fcn.004036b0
add eax, 0x10
add esp, 4
mov dword [esi], eax
mov byte [esp + 0xb8], 0xe
mov byte [esp + 0xb8], 9
call fcn.00415900
add esp, 0x10
mov byte [esp + 0xa8], 6
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415b80
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xa8], 4
mov eax, dword [esp + 0x1c]
jmp 0x415f91
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + 0x38]
push 0x10
lea ecx, [esp + 0x30]
call eax
test eax, eax
jne 0x415fad
lea ecx, [esp + 0x2c]
call fcn.00438e52
test eax, eax
jne 0x415fad
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x30]
call fcn.004390b6
mov byte [esp + 0xa8], 0x11
mov eax, dword [esp + 0x18]
mov edx, dword [eax - 0xc]
lea ecx, [edx - 1]
test ecx, ecx
jl 0x415bfb
lea ecx, [ecx]
test ecx, ecx
jl 0x416028
cmp ecx, edx
jg 0x416028
cmp byte [ecx + eax], 0x5c
je 0x415bfb
sub ecx, 1
jns 0x415be0
mov eax, edx
sub eax, ecx
sub eax, 1
push eax
lea edx, [esp + 0x54]
push edx
lea ecx, [esp + 0x20]
call fcn.004066f0
mov byte [esp + 0xa8], 0x12
push eax
lea ecx, [esp + 0x1c]
call fcn.004037b0
mov byte [esp + 0xa8], 0x11
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415c4b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0xb8]
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.0040ade0
add esp, 0xc
mov byte [esp + 0xa8], 0x14
lea ecx, [esp + 0x88]
call fcn.00438e8b
mov byte [esp + 0xa8], 0x15
mov ecx, dword [esp + 0x14]
push 0
push ecx
lea ecx, [esp + 0x90]
call fcn.00438f17
test eax, eax
lea edi, [esp + 0x18]
je 0x415e91
call fcn.0040f550
mov edx, dword [esp + 0x14]
push 0x80
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x484b40
lea ecx, [esp + 0x28]
call fcn.00403630
mov byte [esp + 0xa8], 0x16
lea edi, [esp + 0x24]
call fcn.0040f550
mov ecx, dword [esp + 0x24]
xor eax, eax
test ecx, ecx
setne al
test eax, eax
je 0x416032
mov eax, dword [esp + 0x18]
push ecx
push eax
call fcn.0044978e
add esp, 8
test eax, eax
sete al
test al, al
je 0x415de6
push 4
push str..new
lea ecx, [esp + 0x1c]
call fcn.00404ee0
lea ecx, [esp + 0x70]
call fcn.00438e8b
mov byte [esp + 0xa8], 0x17
mov ecx, dword [esp + 0x14]
push 0
push ecx
lea ecx, [esp + 0x78]
call fcn.00438f17
test eax, eax
je 0x415d7b
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x415dc4
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x30]
call fcn.004390b6
mov byte [esp + 0xa8], 0x18
mov ecx, dword [esp + 0x14]
mov eax, dword [eax]
push 1
push ecx
push eax
call ebp
test eax, eax
sete bl
mov byte [esp + 0xa8], 0x17
lea ecx, [esp + 0x48]
jmp 0x415dae
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x30]
call fcn.004390b6
mov byte [esp + 0xa8], 0x19
mov ecx, dword [esp + 0x14]
mov eax, dword [eax]
push 1
push ecx
push eax
call ebp
test eax, eax
sete bl
mov byte [esp + 0xa8], 0x17
lea ecx, [esp + 0x60]
call fcn.00403830
test bl, bl
je 0x415dc4
mov edx, dword [esp + 0xb8]
mov dword [edx], 0
mov byte [esp + 0xa8], 0x16
lea ecx, [esp + 0x70]
call fcn.00438eaf
mov byte [esp + 0xa8], 0x15
lea ecx, [esp + 0x24]
jmp 0x415f44
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x415e4f
lea ecx, [esp + 0x58]
push ecx
lea ecx, [esp + 0x30]
call fcn.004390b6
mov byte [esp + 0xa8], 0x1a
mov edx, dword [esp + 0x14]
mov eax, dword [eax]
push 1
push edx
push eax
call ebp
test eax, eax
sete bl
mov byte [esp + 0xa8], 0x16
lea ecx, [esp + 0x58]
call fcn.00403830
test bl, bl
je 0x415e80
mov eax, dword [esp + 0xb8]
mov dword [eax], 0
mov byte [esp + 0xa8], 0x15
lea ecx, [esp + 0x24]
jmp 0x415f44
lea edi, [esp + 0x18]
call fcn.0040f550
mov ecx, dword [esp + 0x18]
push str.sysidle.dll
push ecx
call fcn.0044978e
add esp, 8
test eax, eax
setne al
test al, al
je 0x415e80
mov edx, dword [esp + 0xb8]
mov dword [edx], 0
mov byte [esp + 0xa8], 0x15
lea ecx, [esp + 0x24]
jmp 0x415f44
call fcn.0040f550
push 0x484b40
lea ecx, [esp + 0x2c]
call fcn.00403630
mov byte [esp + 0xa8], 0x1b
lea edi, [esp + 0x28]
call fcn.0040f550
mov ecx, dword [esp + 0x28]
xor eax, eax
test ecx, ecx
setne al
test eax, eax
je 0x416032
mov eax, dword [esp + 0x18]
push ecx
push eax
call fcn.0044978e
add esp, 8
test eax, eax
sete al
test al, al
je 0x415eef
push 4
push str..new
lea ecx, [esp + 0x1c]
call fcn.00404ee0
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [esp + 0x30]
call fcn.004390b6
mov byte [esp + 0xa8], 0x1c
mov edx, dword [esp + 0x14]
mov eax, dword [eax]
push 1
push edx
push eax
call ebp
test eax, eax
sete bl
mov byte [esp + 0xa8], 0x1b
lea ecx, [esp + 0x4c]
call fcn.00403830
test bl, bl
je 0x415f38
mov eax, dword [esp + 0xb8]
mov dword [eax], 0
mov byte [esp + 0xa8], 0x15
lea ecx, [esp + 0x28]
call fcn.00403830
mov byte [esp + 0xa8], 0x14
lea ecx, [esp + 0x88]
call fcn.00438eaf
mov byte [esp + 0xa8], 0x11
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415f85
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xa8], 4
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415fad
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x54], 0
jne 0x415a4a
lea ecx, [esp + 0x2c]
call fcn.00438c4c
mov byte [esp + 0xa8], 3
lea ecx, [esp + 0x20]
call fcn.00403830
mov byte [esp + 0xa8], 1
lea ecx, [esp + 0x2c]
call fcn.00438eaf
mov byte [esp + 0xa8], 0
lea ecx, [esp + 0xb0]
call fcn.00403830
mov dword [esp + 0xa8], 0xffffffff
lea ecx, [esp + 0xb4]
call fcn.00403830
mov ecx, dword [esp + 0xa0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret
push 0x80070057
call fcn.00402d40
push 0x80004005
call fcn.00402d40
int3