Function at 0x488c90
Capabilities:
Copy file
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x641668
mov eax, dword fs:[0]
push eax
sub esp, 0x600
mov eax, dword [0x6bc858]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 0x58
mov esi, ecx
lea ecx, [ebp - 0x60c]
push 0
push ecx
mov dword [ebp - 0x5ac], eax
mov edi, edx
call fcn.005ff630
mov edx, dword [0x6c24bc]
mov eax, dword [edx + 0xc]
add esp, 0xc
mov ecx, 0x6c24bc
call eax
add eax, 0x10
mov dword [ebp - 0x5a8], eax
lea ecx, [ebp - 0x5a8]
push ecx
mov dword [ebp - 4], 0
call fcn.0048b6f0
test al, al
jne 0x488d1b
xor eax, eax
lea ecx, [ebp - 0x5a8]
call fcn.0048cbf0
mov dword [ebp - 4], 1
mov edx, dword [esi]
mov eax, dword [edx + 0x4c]
mov ecx, esi
mov dword [ebp - 0x60c], 0x58
call eax
mov ebx, dword [ebp - 0x5a8]
mov dword [ebp - 0x608], eax
mov eax, dword [ebx - 8]
mov ecx, 1
sub ecx, dword [ebx - 4]
mov esi, 0x104
sub eax, esi
or eax, ecx
jge 0x488d6a
mov ecx, esi
lea eax, [ebp - 0x5a8]
call fcn.0048bcb0
mov ebx, dword [ebp - 0x5a8]
cmp dword [ebx - 8], esi
jge 0x488d9f
push str.nLength___GetData____nAllocLength
push 0
push 0x37c
push 0x688900
push 2
call fcn.005f3d20
add esp, 0x14
cmp eax, 1
jne 0x488d90
int3
cmp dword [ebx - 8], esi
jge 0x488d9f
push 0x80070057
call fcn.00401810
mov dword [ebx - 0xc], esi
mov byte [ebx + 0x104], 0
mov dword [ebp - 0x600], edi
xor edi, edi
mov dword [ebp - 0x5f0], ebx
mov dword [ebp - 0x5ec], esi
mov dword [ebp - 0x5f4], edi
mov dword [ebp - 0x5e8], edi
mov dword [ebp - 0x5e4], edi
mov eax, dword [ebx - 8]
mov ecx, 1
sub ecx, dword [ebx - 4]
sub eax, esi
or eax, ecx
jge 0x488df3
mov ecx, esi
lea eax, [ebp - 0x5a8]
call fcn.0048bcb0
mov ebx, dword [ebp - 0x5a8]
cmp dword [ebx - 8], esi
jge 0x488e27
push str.nLength___GetData____nAllocLength
push edi
push 0x37c
push 0x688900
push 2
call fcn.005f3d20
add esp, 0x14
cmp eax, 1
jne 0x488e18
int3
cmp dword [ebx - 8], esi
jge 0x488e27
push 0x80070057
call fcn.00401810
mov dword [ebx - 0xc], esi
mov byte [ebx + 0x104], 0
lea ecx, [ebp - 0x60c]
push ecx
mov dword [ebp - 0x5e0], ebx
mov dword [ebp - 0x5d0], 0x6745b6
mov dword [ebp - 0x5d8], 0x880004
mov dword [ebp - 0x5dc], 0x688c2c
call dword [sym.imp.COMDLG32.dll_GetOpenFileNameA]
mov dword [ebp - 0x5b4], eax
mov eax, dword [ebx - 8]
push eax
push ebx
call fcn.005fc510
add esp, 8
mov esi, eax
lea edi, [ebp - 0x5a8]
call fcn.0048b860
cmp dword [ebp - 0x5b4], 0
jne 0x488eda
add ebx, 0xfffffff0
lea esi, [ebx + 0xc]
mov dword [ebp - 4], 0xffffffff
cmp dword [esi], 0
jne 0x488ebb
push str.nRefs___0
push 0
push 0x70
push 0x688900
push 2
call fcn.005f3d20
add esp, 0x14
cmp eax, 1
jne 0x488ebb
int3
or edx, 0xffffffff
lock xadd dword [esi], edx
dec edx
test edx, edx
jg 0x489294
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
jmp 0x489294
cmp dword [ebx - 0xc], 0
jne 0x488f28
add ebx, 0xfffffff0
lea esi, [ebx + 0xc]
mov dword [ebp - 4], 0xffffffff
cmp dword [esi], 0
jne 0x488f10
push str.nRefs___0
push 0
push 0x70
push 0x688900
push 2
call fcn.005f3d20
add esp, 0x14
cmp eax, 1
jne 0x488f10
int3
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x489294
mov ecx, dword [ebx]
push ebx
jmp 0x48928d
xor ecx, ecx
push 0x1fe
push ecx
lea edx, [ebp - 0x512]
push edx
mov word [ebp - 0x514], cx
call fcn.005ff630
add esp, 0xc
push 0xff
lea eax, [ebp - 0x313]
push 0
push eax
mov byte [ebp - 0x314], 0
call fcn.005ff630
add esp, 0xc
push 0xff
lea ecx, [ebp - 0x213]
push 0
push ecx
mov byte [ebp - 0x214], 0
call fcn.005ff630
add esp, 0xc
push 0xff
lea edx, [ebp - 0x113]
push 0
push edx
mov byte [ebp - 0x114], 0
call fcn.005ff630
mov esi, 1
add esp, 0xc
cmp dword [ebx - 4], esi
jle 0x488fbd
mov eax, dword [ebx - 0xc]
push eax
lea ecx, [ebp - 0x5a8]
push ecx
call fcn.0048b7b0
mov ebx, dword [ebp - 0x5a8]
lea edx, [ebp - 0x114]
push edx
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push ebx
call fcn.005f9b90
add esp, 0x14
cmp dword [ebx - 4], esi
jle 0x488fed
mov ecx, dword [ebx - 0xc]
push ecx
lea edx, [ebp - 0x5a8]
push edx
call fcn.0048b7b0
mov edi, dword [ebp - 0x5a8]
lea ebx, [ebp - 0x514]
mov esi, edi
call fcn.004d1650
push 0x6745b6
lea ecx, [ebp - 0x534]
call fcn.00412330
lea esi, [ebp - 0x534]
mov byte [ebp - 4], 2
call fcn.004c4b60
push 0x17
push str.TemplateTmpwwwImage_
mov ecx, esi
call fcn.00412ae0
mov ecx, dword [ebp - 0x530]
mov esi, 0x10
cmp dword [ebp - 0x51c], esi
jae 0x489046
lea ecx, [ebp - 0x530]
call fcn.004c3dc0
test eax, eax
je 0x48906e
mov eax, dword [ebp - 0x530]
cmp dword [ebp - 0x51c], esi
jae 0x489063
lea eax, [ebp - 0x530]
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
lea eax, [ebp - 0x5a4]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
lea ecx, [ebp - 0x5b0]
push ecx
lea edx, [ebp - 0x5a4]
push edx
call dword [sym.imp.ole32.dll_StringFromCLSID]
mov esi, dword [ebp - 0x5b0]
lea ebx, [ebp - 0x214]
call fcn.004d1600
mov eax, ebx
push eax
lea ecx, [ebp - 0x554]
call fcn.00412330
mov bl, 3
push 0x6745b6
lea ecx, [ebp - 0x594]
mov byte [ebp - 4], bl
call fcn.00412330
push 0x678194
lea ecx, [ebp - 0x574]
mov byte [ebp - 4], 4
call fcn.00412330
lea ecx, [ebp - 0x594]
push ecx
lea esi, [ebp - 0x574]
lea eax, [ebp - 0x554]
mov byte [ebp - 4], 5
call fcn.004d2900
add esp, 4
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x554]
call fcn.004126e0
mov ecx, esi
mov byte [ebp - 4], 4
call fcn.00412410
lea ecx, [ebp - 0x594]
mov byte [ebp - 4], bl
call fcn.00412410
push 0x6745b6
lea ecx, [ebp - 0x574]
call fcn.00412330
push 0x67819c
lea ecx, [ebp - 0x594]
mov byte [ebp - 4], 6
call fcn.00412330
lea edx, [ebp - 0x574]
push edx
lea esi, [ebp - 0x594]
lea eax, [ebp - 0x554]
mov byte [ebp - 4], 7
call fcn.004d2900
add esp, 4
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x554]
call fcn.004126e0
mov ecx, esi
mov byte [ebp - 4], 6
call fcn.00412410
lea ecx, [ebp - 0x574]
mov byte [ebp - 4], bl
call fcn.00412410
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x554]
push eax
lea ecx, [ebp - 0x534]
call fcn.004129f0
lea eax, [ebp - 0x114]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4891b0
sub eax, edx
push eax
lea ecx, [ebp - 0x114]
push ecx
lea ecx, [ebp - 0x534]
call fcn.00412ae0
mov eax, dword [ebp - 0x530]
mov esi, 0x10
cmp dword [ebp - 0x51c], esi
jae 0x4891e5
lea eax, [ebp - 0x530]
push 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov eax, dword [ebp - 0x550]
cmp dword [ebp - 0x53c], esi
jae 0x489203
lea eax, [ebp - 0x550]
lea edx, [ebp - 0x114]
push edx
push eax
lea eax, [ebp - 0x314]
push str.._image__s_s
push eax
call fcn.005f1060
mov ebx, dword [ebp - 0x5ac]
add esp, 0x10
lea esi, [ebp - 0x314]
call fcn.004d1650
lea ecx, [ebp - 0x554]
mov byte [ebp - 4], 2
call fcn.00412410
lea ecx, [ebp - 0x534]
mov byte [ebp - 4], 1
call fcn.00412410
lea esi, [edi - 0x10]
lea edi, [esi + 0xc]
mov dword [ebp - 4], 0xffffffff
cmp dword [edi], 0
jne 0x48927e
push str.nRefs___0
push 0
push 0x70
push 0x688900
push 2
call fcn.005f3d20
add esp, 0x14
cmp eax, 1
jne 0x48927e
int3
or ecx, 0xffffffff
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x489294
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005f0da0
mov esp, ebp
pop ebp
ret 4