Function at 0x433540
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x4a9010
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
push edi
xor ebp, ebp
push 1
mov esi, ecx
mov dword [esp + 0x14], ebp
call fcn.00496d96
mov eax, dword [esi + 0x84]
push ebp
push ecx
lea edi, [esi + 0x84]
sub eax, 0x10
mov dword [esp + 0x20], esp
mov ebx, esp
push eax
call fcn.004015e0
add eax, 0x10
mov dword [ebx], eax
mov ecx, esp
mov dword [esp + 0x28], esp
push str.DownPath
mov dword [esp + 0x38], ebp
call fcn.00404200
or ebp, 0xffffffff
mov ecx, 0x4d3364
mov dword [esp + 0x34], ebp
call fcn.00473e00
test eax, eax
je 0x4336c9
mov eax, dword [edi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x43368d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x43368d
push 0x4b3b14
lea eax, [esp + 0x14]
push 0x4d2c7c
push eax
call fcn.004023c0
add esp, 0xc
push eax
mov ecx, edi
mov dword [esp + 0x2c], 1
call fcn.00402060
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x28], ebp
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x433624
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [edi]
push 0
push ecx
sub eax, 0x10
mov dword [esp + 0x24], esp
mov ebx, esp
push eax
call fcn.004015e0
add eax, 0x10
mov dword [ebx], eax
mov ecx, esp
mov dword [esp + 0x24], esp
push str.DownPath
mov dword [esp + 0x38], 2
call fcn.00404200
mov ecx, 0x4d3364
mov dword [esp + 0x34], ebp
call fcn.00473e00
mov edi, dword [edi]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x40040
push 0x4b3b04
push 0x4b3a78
mov ecx, esi
call fcn.00496d38
push 0
mov ecx, esi
call fcn.00496d96
mov eax, dword [esi + 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.00497545
push ecx
mov edi, 1
mov ecx, esp
mov dword [esp + 0x20], esp
push str.download.dat
mov dword [eax + 0x344], edi
mov dword [esp + 0x18], edi
call fcn.00404200
mov ecx, 0x4d33b0
call fcn.00425850
jmp 0x4336ce
mov edi, 1
mov ecx, dword [esi + 0x8c]
push 0
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push str.DownFinishAlert
call fcn.00404200
mov ecx, 0x4d3364
call fcn.00431d40
test eax, eax
je 0x4336fa
mov dword [esp + 0x10], edi
mov eax, dword [esi + 0x88]
push 0
push ecx
lea edi, [esi + 0x88]
sub eax, 0x10
mov dword [esp + 0x24], esp
mov ebx, esp
push eax
call fcn.004015e0
add eax, 0x10
mov dword [ebx], eax
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x4b2ad0
mov dword [esp + 0x38], 3
call fcn.00404200
mov ecx, 0x4d3364
mov dword [esp + 0x34], ebp
call fcn.00473e00
test eax, eax
je 0x43383a
mov eax, dword [edi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x43381e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x43381e
push 0x4b3a64
lea edx, [esp + 0x18]
push 0x4d2c7c
push edx
call fcn.004023c0
add esp, 0xc
push eax
mov ecx, edi
mov dword [esp + 0x2c], 4
call fcn.00402060
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x28], ebp
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4337b5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [edi]
push 0
push ecx
sub eax, 0x10
mov dword [esp + 0x24], esp
mov ebx, esp
push eax
call fcn.004015e0
add eax, 0x10
mov dword [ebx], eax
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x4b2ad0
mov dword [esp + 0x38], 5
call fcn.00404200
mov ecx, 0x4d3364
mov dword [esp + 0x34], ebp
call fcn.00473e00
mov eax, dword [edi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x40040
push 0x4b3a54
push 0x4b39c8
mov ecx, esi
call fcn.00496d38
push 0
mov ecx, esi
call fcn.00496d96
mov ecx, dword [esi + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.00497545
mov dword [eax + 0x344], 1
jmp 0x433842
mov eax, dword [esp + 0x10]
test eax, eax
je 0x43384c
mov ecx, 0x4d3364
call fcn.00472cd0
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x1c
ret