Function at 0x40f480
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53a680
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push edi
mov eax, dword [0x58bc40]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
mov edi, dword [ecx - 0xc]
test edi, edi
jns 0x40f4c2
push 0x80070057
call fcn.00408450
mov eax, dword [ecx - 8]
mov edx, 1
sub edx, dword [ecx - 4]
sub eax, edi
or eax, edx
jge 0x40f4df
push edi
lea ecx, [ebp + 8]
call fcn.004083b0
mov ecx, dword [ebp + 8]
mov edx, dword [esi + 0x170]
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x40f4e5
push ecx
mov ecx, esp
mov dword [ebp - 0x10], esp
push str.unrar.dll
call fcn.004075e0
push ecx
mov byte [ebp - 4], 1
lea eax, [ebp + 8]
mov dword [ebp - 0x14], esp
mov ecx, esp
push eax
call fcn.00407f80
mov byte [ebp - 4], 0
call fcn.0040e3b0
mov ecx, dword [ebp + 0xc]
push ecx
push ecx
mov ecx, esp
mov dword [ebp + 0xc], esp
push 0x568508
call fcn.004075e0
push ecx
mov byte [ebp - 4], 2
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.tmp.rar
call fcn.004075e0
push ecx
mov byte [ebp - 4], 3
lea edx, [ebp + 8]
mov dword [ebp - 0x10], esp
mov ecx, esp
push edx
call fcn.00407f80
push esi
mov byte [ebp - 4], 0
call fcn.0040e9d0
call fcn.00418988
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40f581
push 0x80004005
call fcn.00408450
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp + 0xc], eax
push str.Sound_
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 0x10]
mov bl, 4
push edx
mov byte [ebp - 4], bl
call fcn.0040fce0
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 5
call fcn.00407da0
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f5d9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp + 0xc]
mov edx, dword [edi - 0xc]
test edx, edx
jns 0x40f5ed
push 0x80070057
call fcn.00408450
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, edx
or eax, ecx
jge 0x40f60a
push edx
lea ecx, [ebp + 0xc]
call fcn.004083b0
mov edi, dword [ebp + 0xc]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0x5677ec
call fcn.004075e0
push ecx
mov byte [ebp - 4], 6
mov ecx, esp
mov dword [ebp - 0x18], esp
push str.sound.rar
call fcn.004075e0
push ecx
lea edx, [ebp + 0xc]
mov dword [ebp - 0x1c], esp
mov ecx, esp
push edx
mov byte [ebp - 4], 7
call fcn.00407f80
mov byte [ebp - 4], bl
call fcn.0040e630
push 0x1f400000
mov eax, 0x1f40
mov dword [esi + 0x150], eax
xor edi, edi
push edi
mov dword [esi + 0x130], eax
mov eax, dword [esi + 0xd8]
push 0x401
push eax
mov dword [esi + 0x12c], edi
mov dword [esi + 0x138], edi
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esi + 0x14c], edi
mov dword [esi + 0x13c], 0xffff00
mov dword [esi + 0x140], 0xffff
mov dword [esi + 0x144], 0xff00ff
cmp dword [esi + 0x150], edi
jl 0x40f72e
mov ebx, dword [sym.imp.USER32.dll_InvalidateRect]
cmp edi, 0xbb8
jle 0x40f6e0
cmp dword [esi + 0x164], 0
jne 0x40f6e0
mov ecx, dword [esi + 0x20]
push 1
push 0
mov dword [esi + 0x164], 1
push ecx
jmp 0x40f703
cmp edi, 0x1770
jle 0x40f705
cmp dword [esi + 0x164], 1
jne 0x40f705
mov edx, dword [esi + 0x20]
push 1
push 0
mov dword [esi + 0x164], 2
push edx
call ebx
call fcn.0040e350
mov eax, dword [esi + 0xd8]
push 0
push edi
push 0x402
push eax
mov dword [esi + 0x138], edi
call dword [sym.imp.USER32.dll_SendMessageW]
inc edi
cmp edi, dword [esi + 0x150]
jle 0x40f6bb
mov ecx, dword [esi + 0x20]
push ecx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.0041e65e
mov ecx, eax
call fcn.004117f0
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40f768
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f78e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8