Function at 0x406c40
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x47e831
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x49e128]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x28], esi
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov eax, dword [0x49c024]
lea edi, [esi + 0x28]
mov dword [edi], eax
mov dword [esp + 0x34], ebx
mov ecx, dword [0x49c024]
lea ebp, [esi + 0x2c]
mov dword [ebp], ecx
mov byte [esp + 0x34], 1
mov edx, dword [0x49c024]
mov dword [esi + 0x30], edx
mov byte [esp + 0x34], 2
mov eax, dword [0x49c024]
mov dword [esi + 0x5c], eax
mov byte [esp + 0x34], 3
mov ecx, dword [0x49c024]
mov dword [esi + 0x60], ecx
mov byte [esp + 0x34], 4
push ebx
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.USER32.dll_SetRect]
mov eax, 1
lea edx, [esp + 0x20]
push edx
mov byte [esi + 0x10], bl
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x34], 8
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], eax
call fcn.0043a520
add esp, 4
mov byte [esp + 0x34], 5
push eax
mov ecx, edi
call fcn.00402640
mov byte [esp + 0x34], 4
mov eax, dword [esp + 0x20]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x49c020]
je 0x406d48
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x406d48
mov eax, dword [esp + 0x20]
add eax, 0xfffffff4
push eax
call fcn.00460edd
add esp, 4
push 0x487a30
push 0x487a30
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
mov ecx, edi
call fcn.00404920
mov edi, dword [edi]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, esi
call fcn.00405ef0
mov eax, dword [ebp]
mov ecx, dword [eax - 8]
cmp ecx, ebx
je 0x406db5
movzx eax, word [eax + ecx*2 - 2]
cmp ax, 0x5c
je 0x406d9e
push 0x487a2c
push 0x487a2c
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
mov ecx, ebp
call fcn.00404920
mov eax, dword [ebp]
push eax
call fcn.00438550
add esp, 4
test al, al
jne 0x406db5
mov ecx, ebp
call fcn.00405dc0
mov edx, dword [ebp]
cmp dword [edx - 8], ebx
jne 0x406e31
lea eax, [esp + 0x20]
push eax
call fcn.0043a630
add esp, 4
mov byte [esp + 0x34], 6
push eax
mov ecx, ebp
call fcn.00402640
mov byte [esp + 0x34], 4
mov eax, dword [esp + 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x49c020]
je 0x406e0b
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x406e0b
mov eax, dword [esp + 0x20]
add eax, 0xfffffff4
push eax
call fcn.00460edd
add esp, 4
push str.My_Downloads_
push str.My_Downloads_
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
mov ecx, ebp
call fcn.00404920
mov ebp, dword [ebp]
push ebp
call fcn.00438550
add esp, 4
jmp 0x406e37
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea edx, [esp + 0x1c]
push edx
call fcn.0043a710
add esp, 4
mov byte [esp + 0x34], 7
push str._ssleay32.dll
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x2c]
push ecx
call fcn.00405e10
mov byte [esp + 0x34], 8
mov eax, dword [eax]
push eax
mov dword [esp + 0x1c], 1
call fcn.00438410
add esp, 4
test al, al
je 0x406eb1
push 0x4879d4
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x28]
push eax
call fcn.00405e10
mov dword [esp + 0x34], 9
mov eax, dword [eax]
push eax
mov dword [esp + 0x1c], 3
call fcn.00438410
add esp, 4
test al, al
mov byte [esp + 0x17], 1
jne 0x406eb5
mov byte [esp + 0x17], bl
mov dword [esp + 0x34], 8
test byte [esp + 0x18], 2
je 0x406ef2
mov eax, dword [esp + 0x20]
and dword [esp + 0x18], 0xfffffffd
lea ecx, [eax - 0xc]
cmp ecx, dword [0x49c020]
je 0x406ef2
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x406ef2
mov eax, dword [esp + 0x20]
add eax, 0xfffffff4
push eax
call fcn.00460edd
add esp, 4
mov dword [esp + 0x34], 7
test byte [esp + 0x18], 1
je 0x406f2f
mov eax, dword [esp + 0x24]
and dword [esp + 0x18], 0xfffffffe
lea edx, [eax - 0xc]
cmp edx, dword [0x49c020]
je 0x406f2f
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x406f2f
mov eax, dword [esp + 0x24]
add eax, 0xfffffff4
push eax
call fcn.00460edd
add esp, 4
cmp byte [esp + 0x17], bl
setne al
mov byte [esi + 0x24], al
mov byte [esp + 0x34], 4
mov eax, dword [esp + 0x1c]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x49c020]
je 0x406f67
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x406f67
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff4
push eax
call fcn.00460edd
add esp, 4
mov dword [esp + 0x34], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret