Function at 0x534150
Capabilities:
Copy file
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x57cb28
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5d480c]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
lea ecx, [esp + 0x3c]
mov dword [esp + 0x5c], 1
call fcn.00552c38
mov byte [esp + 0x5c], 2
call fcn.0045e1b2
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x5341a7
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 + 0x18], eax
mov byte [esp + 0x5c], 3
call fcn.0045e1b2
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x5341d6
push 0x80004005
call fcn.004017e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x64]
push 1
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x38], esp
mov edi, esp
push eax
mov byte [esp + 0x68], 4
call fcn.00406320
lea ecx, [esp + 0x28]
add esp, 4
add eax, 0x10
push ecx
mov dword [edi], eax
call fcn.0052dbb0
add esp, 0xc
push eax
lea ecx, [esp + 0x68]
mov byte [esp + 0x60], 5
call fcn.0041a0d0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x5c], 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x53424a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x68]
push 1
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x38], esp
mov edi, esp
push eax
call fcn.00406320
lea ecx, [esp + 0x28]
add esp, 4
add eax, 0x10
push ecx
mov dword [edi], eax
call fcn.0052dbb0
add esp, 0xc
push eax
lea ecx, [esp + 0x6c]
mov byte [esp + 0x60], 6
call fcn.0041a0d0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x5c], 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x5342a9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x593e28
lea ecx, [esp + 0x68]
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.00407ab0
add esp, 0xc
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x60], 7
call fcn.0041a0d0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x5c], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5342f4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [esp + 0x18]
push 0
push ebx
lea ecx, [esp + 0x44]
call fcn.00552cd0
test eax, eax
jne 0x5343c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
add esi, 0xfffffff0
mov byte [esp + 0x5c], 3
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x534335
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
lea eax, [ebx - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x5c], 2
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x534356
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x5c], 1
call fcn.00552c61
mov eax, dword [esp + 0x64]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x5c], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x534389
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x68]
add eax, 0xfffffff0
mov dword [esp + 0x5c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5343b1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
lea ecx, [esp + 0x3c]
call fcn.00552aa4
lea ecx, [esp + 0x3c]
mov dword [esp + 0x30], eax
call fcn.00552bf9
test eax, eax
jne 0x5345c8
mov edx, dword [esp + 0x3c]
mov eax, dword [edx + 0x38]
push 0x10
lea ecx, [esp + 0x40]
call eax
test eax, eax
je 0x5344fa
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x40]
call fcn.00552e04
push eax
lea edx, [esp + 0x6c]
push edx
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0x68], 8
call fcn.0041a190
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x60], 9
call fcn.0041a0d0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x5c], 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x534456
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 + 0x5c], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x53447b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x14]
push ecx
lea edi, [esi - 0x10]
mov dword [esp + 0x38], esp
mov ebp, esp
push edi
call fcn.00406320
add eax, 0x10
add esp, 4
mov dword [ebp], eax
call fcn.00533380
add esp, 4
cmp eax, 2
je 0x5344b6
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x53430c
push ecx
mov dword [esp + 0x38], esp
mov ebp, esp
push edi
call fcn.00406320
add eax, 0x10
mov dword [ebp], eax
mov ecx, esp
mov dword [esp + 0x40], esp
push ecx
lea ecx, [esp + 0x48]
mov byte [esp + 0x68], 0xa
call fcn.00552ecf
mov byte [esp + 0x64], 4
call fcn.00534150
mov edi, eax
add esp, 8
test edi, edi
jne 0x534314
jmp 0x5345c8
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x40]
call fcn.00552f60
push eax
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov byte [esp + 0x68], 0xb
call fcn.0041a190
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x60], 0xc
call fcn.0041a0d0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x5c], 0xb
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x534554
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x5c], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x534579
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x40]
call fcn.00552ecf
mov esi, dword [esp + 0x14]
mov eax, dword [eax]
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
mov eax, dword [esp + 0x2c]
sete bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x5345bc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
jne 0x534686
mov ebx, dword [esp + 0x18]
cmp dword [esp + 0x30], 0
jne 0x5343c7
add esi, 0xfffffff0
mov byte [esp + 0x5c], 3
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5345f4
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
lea eax, [ebx - 0x10]
mov byte [esp + 0x5c], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x534615
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x5c], 1
call fcn.00552c61
mov eax, dword [esp + 0x64]
add eax, 0xfffffff0
mov byte [esp + 0x5c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x534648
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x68]
add eax, 0xfffffff0
mov dword [esp + 0x5c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x534670
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
add esi, 0xfffffff0
mov edi, eax
mov byte [esp + 0x5c], 3
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5346af
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
jmp 0x534338