Function at 0x5346c0
Capabilities:
Create directory
Move file

Disassembly:
push 0xffffffffffffffff
push 0x57cbb8
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5d480c]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
lea ecx, [esp + 0x40]
mov dword [esp + 0x60], 1
call fcn.00552c38
mov byte [esp + 0x60], 2
call fcn.0045e1b2
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x534717
push 0x80004005
call fcn.004017e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x60], 3
call fcn.0045e1b2
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x534746
push 0x80004005
call fcn.004017e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x68]
push 1
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x3c], esp
mov esi, esp
push eax
mov byte [esp + 0x6c], 4
call fcn.00406320
lea ecx, [esp + 0x28]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.0052dbb0
add esp, 0xc
push eax
lea ecx, [esp + 0x6c]
mov byte [esp + 0x64], 5
call fcn.0041a0d0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x60], 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x5347ba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x6c]
push 1
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x3c], esp
mov esi, esp
push eax
call fcn.00406320
lea ecx, [esp + 0x28]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.0052dbb0
add esp, 0xc
push eax
lea ecx, [esp + 0x70]
mov byte [esp + 0x64], 6
call fcn.0041a0d0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x60], 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x534819
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x593e28
lea ecx, [esp + 0x6c]
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.00407ab0
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x64], 7
call fcn.0041a0d0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x60], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x534864
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [esp + 0x14]
push 0
push ebx
lea ecx, [esp + 0x48]
call fcn.00552cd0
test eax, eax
jne 0x534944
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
add edi, 0xfffffff0
mov byte [esp + 0x60], 3
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5348a5
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
lea eax, [ebx - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x60], 2
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5348c6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x60], 1
call fcn.00552c61
mov eax, dword [esp + 0x68]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x60], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5348f9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x6c]
add eax, 0xfffffff0
mov dword [esp + 0x60], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x534921
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
mov ebx, dword [esp + 0x14]
lea ecx, [esp + 0x40]
call fcn.00552aa4
lea ecx, [esp + 0x40]
mov dword [esp + 0x34], eax
call fcn.00552bf9
test eax, eax
jne 0x534b6f
mov edx, dword [esp + 0x40]
mov eax, dword [edx + 0x38]
push 0x10
lea ecx, [esp + 0x44]
call eax
test eax, eax
je 0x534aa7
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x44]
call fcn.00552e04
push eax
lea edx, [esp + 0x70]
push edx
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0x6c], 8
call fcn.0041a190
add esp, 0xc
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x64], 9
call fcn.0041a0d0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x60], 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5349d3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x60], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5349f8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x18]
push ecx
lea esi, [edi - 0x10]
mov dword [esp + 0x3c], esp
mov ebp, esp
push esi
call fcn.00406320
add eax, 0x10
add esp, 4
mov dword [ebp], eax
call fcn.00533380
add esp, 4
cmp eax, 2
je 0x534a33
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x53487c
push ecx
mov dword [esp + 0x3c], esp
mov ebp, esp
push esi
call fcn.00406320
add eax, 0x10
mov dword [ebp], eax
mov ecx, esp
mov dword [esp + 0x44], esp
push ecx
lea ecx, [esp + 0x4c]
mov byte [esp + 0x6c], 0xa
call fcn.00552ecf
mov byte [esp + 0x68], 4
call fcn.005346c0
mov esi, eax
add esp, 8
test esi, esi
jne 0x534884
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x44]
call fcn.00552ecf
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
mov eax, dword [esp + 0x24]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x534b5b
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x44]
call fcn.00552f60
push eax
lea edx, [esp + 0x70]
push edx
lea eax, [esp + 0x30]
push eax
mov byte [esp + 0x6c], 0xb
call fcn.0041a190
add esp, 0xc
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x64], 0xc
call fcn.0041a0d0
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x60], 0xb
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x534b01
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x60], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x534b26
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x44]
call fcn.00552ecf
mov edi, dword [esp + 0x18]
mov eax, dword [eax]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
mov eax, dword [esp + 0x30]
sete bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x534b67
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
jne 0x534c31
cmp dword [esp + 0x34], 0
jne 0x534940
add edi, 0xfffffff0
mov byte [esp + 0x60], 3
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x534b9b
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x60], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x534bc0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x60], 1
call fcn.00552c61
mov eax, dword [esp + 0x68]
add eax, 0xfffffff0
mov byte [esp + 0x60], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x534bf3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x6c]
add eax, 0xfffffff0
mov dword [esp + 0x60], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x534c1b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
add edi, 0xfffffff0
or edx, 0xffffffff
lea ecx, [edi + 0xc]
mov byte [esp + 0x60], 3
mov esi, eax
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x534c5a
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
jmp 0x5348a8