Function at 0x409c70
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x46f848
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48e820]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x68], eax
mov edi, dword [esp + 0x74]
add edi, 0xfffffff0
push edi
call fcn.00410330
add eax, 0x10
add esp, 4
mov dword [esp + 0x18], eax
push 0xa
push str.config.xml
lea ecx, [esp + 0x20]
mov byte [esp + 0x70], 1
call fcn.0040ecb0
lea eax, [esp + 0x24]
push eax
call fcn.00401040
mov bl, 2
lea ecx, [esp + 0x28]
mov byte [esp + 0x68], bl
mov ebp, dword [esp + 0x18]
push ecx
push ebp
lea edx, [esp + 0x54]
lea ecx, [esp + 0x2c]
call fcn.00418f70
add esp, 8
test al, al
je 0x409d04
lea ecx, [esp + 0x24]
call fcn.004196b0
mov eax, str.Config
lea esi, [esp + 0x24]
call fcn.00419460
test al, al
jne 0x409d45
mov ebx, dword [esp + 0x70]
push 0x47b3d4
mov ecx, ebx
call fcn.00410560
call fcn.00401100
lea eax, [ebp - 0x10]
mov byte [esp + 0x68], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x409fa6
mov eax, str.downsave
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x24]
call fcn.00401180
push eax
lea ecx, [esp + 0x78]
mov byte [esp + 0x6c], 3
call fcn.004104e0
mov byte [esp + 0x68], bl
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409d8a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x74]
cmp dword [esi - 0xc], 0
jne 0x409ea6
lea ecx, [esp + 0x1c]
push ecx
call fcn.0040c730
add esp, 4
push eax
lea ecx, [esp + 0x78]
mov byte [esp + 0x6c], 4
call fcn.004104e0
mov byte [esp + 0x68], bl
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x409dd8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x13
push str.DoolandMagDownLoad_
lea ecx, [esp + 0x7c]
call fcn.0040ecb0
mov esi, dword [esp + 0x74]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0
push esi
call ebp
push ecx
lea eax, [esi - 0x10]
mov dword [esp + 0x20], esp
mov edi, esp
push eax
call fcn.00410330
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.0040c940
add esp, 4
test eax, eax
jne 0x409e6f
lea ebx, [esp + 0x1c]
call fcn.0040e380
push eax
lea ecx, [esp + 0x78]
mov byte [esp + 0x6c], 5
call fcn.004104e0
mov byte [esp + 0x68], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409e58
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.DoolandMagDownLoad_
lea ecx, [esp + 0x78]
call fcn.0040e580
mov esi, dword [esp + 0x74]
push 0
push esi
call ebp
mov ecx, dword [esp + 0x30]
push esi
push str.downsave
push ecx
lea ecx, [esp + 0x30]
call fcn.0041a980
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x4c]
push edx
push eax
lea edx, [esp + 0x30]
lea ecx, [esp + 0x2c]
call fcn.004191f0
mov ebp, dword [esp + 0x20]
add esp, 8
jmp 0x409f40
push 0
push ecx
lea edi, [esi - 0x10]
mov dword [esp + 0x24], esp
mov ebx, esp
push edi
call fcn.00410330
add eax, 0x10
add esp, 4
mov dword [ebx], eax
call fcn.00409ff0
add esp, 4
mov dword [esp + 0x20], esp
mov ebx, esp
push edi
call fcn.00410330
add eax, 0x10
add esp, 4
mov dword [ebx], eax
call fcn.0040c940
add esp, 4
test eax, eax
jne 0x409f40
lea ebx, [esp + 0x1c]
call fcn.0040e380
push eax
lea ecx, [esp + 0x78]
mov byte [esp + 0x6c], 6
call fcn.004104e0
mov byte [esp + 0x68], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409f25
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.DoolandMagDownLoad_
lea ecx, [esp + 0x78]
call fcn.0040e580
mov esi, dword [esp + 0x74]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push ecx
lea edi, [esi - 0x10]
mov dword [esp + 0x24], esp
mov ebx, esp
push edi
call fcn.00410330
add eax, 0x10
add esp, 4
mov dword [ebx], eax
call fcn.0040c940
add esp, 4
test eax, eax
jne 0x409f76
mov ebx, dword [esp + 0x70]
push 0x47b3d4
mov ecx, ebx
call fcn.00410560
jmp 0x409f88
push edi
call fcn.00410330
mov ebx, dword [esp + 0x74]
add esp, 4
add eax, 0x10
mov dword [ebx], eax
lea esi, [esp + 0x24]
call fcn.00401100
lea eax, [ebp - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x68], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409fb2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x68], 0xffffffff
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409fd3
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov eax, ebx
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret