Function at 0x544534
Capabilities:
Copy file
Create directory
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 5], cl
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x544a00
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x66f294]
cmp byte [eax], 0
jne 0x5449d1
mov eax, dword [0x66ebf8]
test byte [eax], 0x10
jne 0x544595
mov al, byte [0x544a14]
and al, byte [ebp - 5]
mov dl, byte [0x544a18]
cmp dl, al
je 0x5449d1
mov byte [ebp - 6], 0
test byte [ebp - 5], 8
jne 0x5445ae
push 0
mov eax, dword [0x66ee70]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_CreateDirectoryW
mov byte [ebp - 0x2d], 1
call fcn.0064d630
mov dword [ebp - 0xc], eax
call fcn.0064d630
mov ebx, eax
push 0
mov eax, dword [0x66ee70]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
mov edx, 0x544a20
call fcn.00621f70
mov eax, dword [0x66ebf8]
test byte [eax + 1], 0x40
je 0x544666
call fcn.00656138
add esp, 0xfffffff8
fstp qword [esp]
wait
call fcn.0061c668
mov eax, dword [0x66ebf8]
imul eax, dword [eax + 0xc], 0x3c
imul eax, eax, 0x3c
shl eax, 3
lea eax, [eax + eax*2]
mov dword [ebp - 0x38], eax
fild dword [ebp - 0x38]
fsubp st(1)
fstp qword [ebp - 0x24]
wait
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x24]
dec eax
cmp eax, 0
jl 0x544666
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x20]
mov edx, dword [ebp - 0x2c]
lea edi, [eax + edx*4]
mov eax, dword [edi]
call fcn.0061c654
add esp, 0xfffffff8
fstp qword [esp]
wait
call fcn.0061c668
fcomp qword [ebp - 0x24]
fnstsw ax
sahf
jae 0x54465d
mov eax, dword [edi]
call fcn.00622098
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x38]
dec dword [ebp - 0x2c]
cmp dword [ebp - 0x2c], 0xffffffff
jne 0x544624
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x24]
dec eax
test eax, eax
jl 0x5446a5
inc eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 0x3c]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + 0x18]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [edx + ecx*4]
call fcn.004034e4
mov edx, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x2c]
mov eax, ebx
call fcn.0064f5d4
inc dword [ebp - 0x2c]
dec dword [ebp - 0x34]
jne 0x54467c
mov eax, ebx
call fcn.00479004
cmp dword [ebp - 4], 0
je 0x54472c
test esi, esi
je 0x5446c2
lea eax, [ebp - 0x14]
mov edx, dword [esi]
call fcn.004038bc
jmp 0x5446cd
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.00565534
test byte [ebp - 5], 0x10
je 0x5446e0
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x14]
call fcn.004038bc
jmp 0x544716
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x168]
sub eax, 3
je 0x5446f3
sub eax, 2
jne 0x54470b
lea ecx, [ebp - 0x10]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x160]
mov edx, 0x544a2c
call fcn.0065512c
jmp 0x544716
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.00565534
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 0x10]
call fcn.006552dc
mov edx, dword [ebp - 0x40]
lea eax, [ebp - 0x10]
call fcn.004038bc
xor esi, esi
jmp 0x544853
mov edi, 1
jmp 0x54473b
inc edi
lea eax, [edi + esi]
cmp eax, dword [ebx + 0x24]
jge 0x54475b
lea eax, [edi + esi]
mov edx, dword [ebx + 0x18]
mov edx, dword [edx + eax*4]
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + esi*4]
call fcn.00655078
test al, al
jne 0x54473a
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + esi*4]
mov edx, dword [ebp - 0x10]
call fcn.00655078
mov byte [ebp - 0x2e], al
cmp byte [ebp - 0x2e], 0
je 0x5447e6
test byte [ebp - 5], 1
jne 0x5447e6
lea edx, [edi + esi]
dec edx
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + 0x18]
mov eax, dword [edx + eax*4]
call fcn.0061c654
add esp, 0xfffffff8
fstp qword [esp]
wait
call fcn.0061c668
fstp qword [ebp - 0x48]
wait
mov eax, dword [ebp - 0x14]
call fcn.0061c654
add esp, 0xfffffff8
fstp qword [esp]
wait
call fcn.0061c668
fsub qword [ebp - 0x48]
mov eax, dword [0x66ebf8]
mov eax, dword [eax + 8]
mov edx, dword [0x66f6f0]
imul eax, dword [edx + eax*4], 0x3c
mov dword [ebp - 0x38], eax
fild dword [ebp - 0x38]
fcompp
fnstsw ax
sahf
jbe 0x5447e6
mov byte [ebp - 0x2d], 0
mov eax, dword [0x66ebf8]
cmp dword [eax + 4], 9
je 0x54485f
xor eax, eax
mov dword [ebp - 0x28], eax
mov eax, dword [0x66ebf8]
cmp dword [eax + 4], 9
jge 0x54484e
mov al, byte [ebp - 0x2e]
xor al, 1
and eax, 0x7f
lea edx, [edi + esi]
sub edx, eax
mov eax, dword [0x66ebf8]
mov eax, dword [eax + 4]
mov ecx, dword [0x66f2c8]
sub edx, dword [ecx + eax*4]
mov eax, esi
sub eax, edx
jg 0x54484e
dec eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x2c], edx
mov edx, dword [ebp - 0x2c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + 0x18]
mov eax, dword [edx + eax*4]
call fcn.00622098
mov edx, dword [ebp - 0x2c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc dword [ebp - 0x28]
dec dword [ebp - 0x2c]
inc dword [ebp - 0x34]
jne 0x544821
sub edi, dword [ebp - 0x28]
add esi, edi
mov eax, dword [ebx + 0x24]
dec eax
cmp esi, eax
jle 0x544733
mov eax, ebx
call fcn.004028c0
mov eax, dword [ebp - 0xc]
call fcn.004028c0
mov eax, dword [0x66ee70]
mov eax, dword [eax]
call fcn.00621f8c
cmp byte [ebp - 0x2d], 0
je 0x5449d1
test byte [ebp - 5], 8
jne 0x5449d1
lea eax, [ebp - 0x18]
mov edx, dword [0x66ee70]
mov edx, dword [edx]
call fcn.004038bc
lea eax, [ebp - 0x18]
call fcn.00621b3c
mov eax, dword [0x66ebf8]
test byte [eax], 0x20
je 0x5448ce
mov eax, dword [0x66ebf8]
cmp dword [eax + 4], 0
jle 0x5448ce
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x10]
call fcn.00403ab4
lea eax, [ebp - 0x18]
call fcn.00621b3c
lea ecx, [ebp - 0x40]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
call fcn.00478dd0
mov edx, dword [ebp - 0x40]
lea eax, [ebp - 0x18]
call fcn.00403ab4
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
call fcn.006551b8
jmp 0x5448fc
lea eax, [ebp - 0x1c]
call fcn.00653bf4
mov eax, dword [ebp - 0x1c]
call fcn.00653bb0
cmp ax, 0x2e
je 0x5448f4
lea eax, [ebp - 0x1c]
call fcn.00653bf4
push dword [ebp - 0x1c]
push 0x544a3c
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 0x10]
call fcn.0065530c
push dword [ebp - 0x40]
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00403b78
mov eax, dword [ebp - 0x18]
call fcn.00403aa8
cmp eax, 0x100
jge 0x54488e
push 0
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 0x18]
call fcn.00655234
mov eax, dword [ebp - 0x40]
push eax
call sub.kernel32.dll_CreateDirectoryW
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4b0]
mov edx, dword [ebp - 4]
mov dword [edx + 0x4bc], eax
call fcn.00656138
mov eax, dword [ebp - 4]
fstp qword [eax + 0x814]
wait
test byte [ebp - 5], 2
jne 0x544998
push 0
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_CopyFileW
test eax, eax
jne 0x5449d1
test byte [ebp - 5], 2
je 0x5449b1
push 3
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_MoveFileExW
test eax, eax
jne 0x5449d1
mov ax, word [0x544a44]
push eax
mov eax, dword [0x66f590]
mov eax, dword [eax]
mov cl, 1
mov edx, dword [ebp - 0x18]
call fcn.0061fe54
cmp ax, 2
je 0x5449d5
jmp 0x54497f
mov byte [ebp - 6], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x544a07
lea eax, [ebp - 0x40]
call fcn.00403880
lea eax, [ebp - 0x3c]
call fcn.00403274
lea eax, [ebp - 0x1c]
mov edx, 4
call fcn.00403898
ret