Function at 0x480de0
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x4f1771
mov eax, dword fs:[0]
push eax
sub esp, 0x2c8
mov eax, dword [0x52b360]
xor eax, esp
mov dword [esp + 0x2c0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x52b360]
xor eax, esp
push eax
lea eax, [esp + 0x2dc]
mov dword fs:[0], eax
mov eax, dword [esp + 0x2ec]
mov edi, ecx
push 1
xor ecx, ecx
mov ebp, 7
xor ebx, ebx
push 0x4fea60
lea esi, [esp + 0xb8]
mov dword [esp + 0x20], eax
mov dword [esp + 0xd0], ebp
mov dword [esp + 0xcc], ebx
mov word [esp + 0xbc], cx
call fcn.00401760
mov dword [esp + 0x2e4], ebx
xor edx, edx
mov eax, edi
mov word [esp + 0x7c], dx
mov dword [esp + 0x90], ebp
mov dword [esp + 0x8c], ebx
lea edx, [eax + 2]
jmp 0x480e80
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x480e80
sub eax, edx
sar eax, 1
push eax
push edi
lea esi, [esp + 0x80]
call fcn.00401760
mov byte [esp + 0x2e4], 1
mov eax, dword [esp + 0xb4]
mov ebp, 8
cmp dword [esp + 0xc8], ebp
jae 0x480ec1
lea eax, [esp + 0xb4]
mov ecx, dword [esp + 0xc4]
push ecx
push eax
lea edx, [esp + 0x80]
push edx
call fcn.0043b890
lea edx, [eax + 1]
lea eax, [esp + 0x78]
push eax
or ecx, 0xffffffff
lea esi, [esp + 0x98]
call fcn.00408160
mov byte [esp + 0x2e4], 2
mov eax, dword [esp + 0x98]
cmp dword [esp + 0xac], ebp
jae 0x480f0d
lea eax, [esp + 0x98]
push eax
push 0x50b534
mov esi, 0x104
push 0x534ea8
mov edx, esi
call fcn.00482330
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x2c], ecx
add esp, 0xc
lea ecx, [esp + 0x1c]
xor edx, edx
xor eax, eax
push ecx
mov dword [esp + 0x20], 0x58
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], 0x52fb28
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], 0x534ea8
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], 0x534ca0
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov word [esp + 0x58], dx
mov word [esp + 0x5a], ax
mov dword [esp + 0x5c], 0x50b52c
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameW]
test eax, eax
je 0x4810b0
push 0x206
lea eax, [esp + 0xd2]
xor edx, edx
push ebx
push eax
mov word [esp + 0xd8], dx
call fcn.004d1df0
mov ecx, dword [esp + 0x44]
push ecx
lea edx, [esp + 0xdc]
push esi
push edx
call fcn.004ca220
add esp, 0x18
lea eax, [esp + 0xcc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x4fea60
lea ecx, [esp + 0xd0]
push esi
push ecx
call fcn.004cad59
lea edx, [esp + 0xd8]
push edx
mov edi, str.DownloadDir
call fcn.0047f900
mov eax, dword [esp + 0x8c]
add esp, 0x10
cmp dword [esp + 0x90], ebp
jae 0x481025
lea eax, [esp + 0x7c]
mov ecx, dword [esp + 0x38]
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp dword [esp + 0xac], ebp
jb 0x48104b
mov edx, dword [esp + 0x98]
push edx
call fcn.004c8f17
add esp, 4
xor eax, eax
mov esi, 7
mov dword [esp + 0xac], esi
mov dword [esp + 0xa8], ebx
mov word [esp + 0x98], ax
cmp dword [esp + 0x90], ebp
jb 0x48107e
mov ecx, dword [esp + 0x7c]
push ecx
call fcn.004c8f17
add esp, 4
xor edx, edx
mov dword [esp + 0x90], esi
mov dword [esp + 0x8c], ebx
mov word [esp + 0x7c], dx
cmp dword [esp + 0xc8], ebp
jb 0x4810ac
mov eax, dword [esp + 0xb4]
push eax
call fcn.004c8f17
add esp, 4
mov al, 1
jmp 0x48112c
cmp dword [esp + 0xac], ebp
jb 0x4810c9
mov ecx, dword [esp + 0x98]
push ecx
call fcn.004c8f17
add esp, 4
xor edx, edx
mov esi, 7
mov dword [esp + 0xac], esi
mov dword [esp + 0xa8], ebx
mov word [esp + 0x98], dx
cmp dword [esp + 0x90], ebp
jb 0x4810fc
mov eax, dword [esp + 0x7c]
push eax
call fcn.004c8f17
add esp, 4
xor ecx, ecx
mov dword [esp + 0x90], esi
mov dword [esp + 0x8c], ebx
mov word [esp + 0x7c], cx
cmp dword [esp + 0xc8], ebp
jb 0x48112a
mov edx, dword [esp + 0xb4]
push edx
call fcn.004c8f17
add esp, 4
xor al, al
mov ecx, dword [esp + 0x2dc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c0]
xor ecx, esp
call fcn.004c8f08
add esp, 0x2d4
ret