Function at 0x408720
Capabilities:
Create directory
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x435a26
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x160
mov eax, dword [0x4476d4]
xor eax, dword [esp + 0x16c]
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x16c], eax
call fcn.0042747d
xor ebp, ebp
push 0x437fa0
lea ecx, [esp + 0x14]
mov dword [esp + 0x17c], ebp
call fcn.00402550
mov edi, dword [esp + 0x180]
mov eax, dword [edi]
lea ecx, [esp + 0x2c]
push ecx
push eax
mov byte [esp + 0x180], 1
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
or ebx, 0xffffffff
cmp esi, ebx
mov dword [esp + 0x14], esi
je 0x4087ca
test byte [esp + 0x2c], 0x10
je 0x4087ca
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x178], 0
lea edx, [eax + 0xc]
mov ecx, ebx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x408a4e
push ebx
push ebp
lea ecx, [esp + 0x20]
call fcn.004274ef
mov eax, dword [edi]
cmp dword [eax - 0xc], ebp
jle 0x408896
mov bl, byte [eax + ebp]
cmp bl, 0x5c
je 0x408832
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 4]
mov edi, dword [edx - 0xc]
mov ecx, 1
sub ecx, eax
mov eax, dword [edx - 8]
lea esi, [edi + 1]
sub eax, esi
or eax, ecx
jge 0x408813
push esi
lea ecx, [esp + 0x14]
call fcn.00402030
mov edx, dword [esp + 0x10]
mov byte [edi + edx], bl
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x180]
mov dword [eax - 0xc], esi
mov ecx, dword [esp + 0x10]
mov byte [esi + ecx], 0
mov esi, dword [esp + 0x14]
jmp 0x408868
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x10]
push edx
push eax
lea ecx, [esp + 0x20]
call fcn.00427621
mov eax, 0x4381e8
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408850
sub eax, edx
push eax
push 0x4381e8
lea ecx, [esp + 0x18]
call fcn.00402330
mov ecx, dword [edi]
mov eax, dword [ecx - 0xc]
dec eax
cmp ebp, eax
jne 0x408885
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x10]
push edx
push eax
lea ecx, [esp + 0x20]
call fcn.00427621
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
inc ebp
cmp ebp, ecx
jl 0x4087e0
or ebx, 0xffffffff
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
call esi
mov eax, dword [esp + 0x20]
xor ebp, ebp
test eax, eax
mov dword [esp + 0x14], ebp
jle 0x40899e
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + ebp*4]
mov ebx, dword [esp + 0x10]
lea esi, [eax - 0x10]
add ebx, 0xfffffff0
cmp esi, ebx
je 0x408963
mov ecx, dword [ebx + 0xc]
test ecx, ecx
jge 0x4088e4
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.00402230
jmp 0x408963
mov ecx, dword [esi]
mov edx, dword [ecx]
call dword [edx + 0x10]
mov edx, dword [esi + 0xc]
test edx, edx
lea ecx, [esi + 0xc]
jl 0x408906
cmp eax, dword [esi]
jne 0x408906
mov ebp, esi
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x40893a
mov ecx, dword [esi + 4]
mov edx, dword [eax]
push 1
push ecx
mov ecx, eax
call dword [edx]
mov ebp, eax
test ebp, ebp
je 0x408a24
mov edx, dword [esi + 4]
mov dword [ebp + 4], edx
mov ecx, dword [esi + 4]
inc ecx
mov eax, ecx
shr ecx, 2
add esi, 0x10
lea edi, [ebp + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
lea eax, [ebx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x408951
mov ecx, dword [ebx]
mov edx, dword [ecx]
push ebx
call dword [edx + 4]
mov edi, dword [esp + 0x180]
add ebp, 0x10
mov dword [esp + 0x10], ebp
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x408984
mov ecx, dword [esp + 0x10]
push 0x80
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [esp + 0x20]
inc ebp
cmp ebp, eax
mov dword [esp + 0x14], ebp
jl 0x4088b1
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
or ebx, 0xffffffff
push ebx
push 0
lea ecx, [esp + 0x20]
call fcn.004274ef
mov eax, dword [edi]
lea edx, [esp + 0x2c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, ebx
jne 0x408a29
push ebx
call esi
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x178], 0
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4089e4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x18]
mov dword [esp + 0x178], ebx
call fcn.004274cf
xor eax, eax
mov ecx, dword [esp + 0x170]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x168]
xor ecx, dword [esp + 0x178]
pop esi
pop ebp
pop ebx
call fcn.00419d0f
add esp, 0x16c
ret 4
call fcn.00401f00
test byte [esp + 0x2c], 0x10
push eax
je 0x4089bd
call esi
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x178], 0
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408a58
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x18]
mov dword [esp + 0x178], ebx
call fcn.004274cf
mov eax, 1
jmp 0x4089f6