Function at 0x408310
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x449d03
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x13c
mov eax, dword [0x461660]
push ebx
push ebp
push esi
mov ebp, ecx
mov dword [esp + 0x144], eax
mov eax, dword [ebp + 0x4ec]
push edi
xor edi, edi
cmp eax, edi
jne 0x4088d2
mov eax, dword [ebp + 0x1c]
mov esi, dword [sym.imp.USER32.dll_KillTimer]
push 0x401
push eax
mov dword [ebp + 0x4ec], 1
call esi
mov ecx, dword [ebp + 0x1c]
push 0x402
push ecx
mov dword [ebp + 0x500], edi
call esi
mov dword [ebp + 0x3a0], edi
call fcn.0043ae74
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x2c], eax
mov dword [esp + 0x154], edi
call fcn.0043ae74
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov esi, dword [ebp + 0x468]
mov eax, dword [ebp + 0x46c]
cmp esi, eax
mov byte [esp + 0x154], 1
je 0x408496
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileExA]
mov ebx, 2
lea eax, [esp + 0x18]
push eax
call fcn.0041d270
mov ecx, dword [esi]
mov edx, dword [eax]
push ecx
push edx
lea eax, [esp + 0x38]
push 0x44c708
push eax
mov byte [esp + 0x168], bl
call fcn.00401290
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
add esp, 0x14
mov byte [esp + 0x154], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408422
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esp + 0x10]
push eax
call fcn.0041d270
mov ecx, dword [esi]
mov edx, dword [eax]
push ecx
push edx
lea eax, [esp + 0x2c]
push str._sdownload_s
push eax
mov byte [esp + 0x168], 3
call fcn.00401290
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
add esp, 0x14
mov byte [esp + 0x154], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408472
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x2c]
push ebx
push 0
push 0
push 0
push eax
push ecx
call edi
mov eax, dword [ebp + 0x46c]
add esi, 4
cmp esi, eax
jne 0x4083d3
call fcn.0043ae74
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x154], 4
call fcn.0043ae74
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x488]
mov ecx, dword [ebp + 0x48c]
xor edx, edx
cmp eax, ecx
mov byte [esp + 0x154], 5
mov dword [esp + 0x24], edx
mov dword [esp + 0x10], eax
je 0x40865e
jmp 0x4084f0
mov edx, dword [esp + 0x24]
mov ecx, dword [ebp + 0x498]
test ecx, ecx
jne 0x4084fe
xor eax, eax
jmp 0x408509
mov eax, dword [ebp + 0x49c]
sub eax, ecx
sar eax, 2
cmp edx, eax
jge 0x408563
mov eax, dword [ebp + 0x498]
mov ecx, dword [eax + edx*4]
mov esi, dword [esp + 0x14]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x408573
mov edx, dword [esi + 0xc]
test edx, edx
lea edi, [esi + 0xc]
jl 0x40855c
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40855c
push eax
call fcn.004015f0
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x408553
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
add ebx, 0x10
mov dword [esp + 0x14], ebx
jmp 0x408573
mov eax, dword [ecx - 0xc]
push eax
push ecx
jmp 0x40856a
push 0
push 0x44c743
lea ecx, [esp + 0x1c]
call fcn.00401ac0
lea eax, [esp + 0x1c]
push eax
call fcn.0041d270
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov eax, dword [eax]
push edx
push eax
lea ecx, [esp + 0x24]
push 0x44c708
push ecx
mov byte [esp + 0x168], 6
call fcn.00401290
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
add esp, 0x14
mov byte [esp + 0x154], 5
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4085c7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov esi, dword [esp + 0x14]
push ecx
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
add esi, 0xfffffff0
mov dword [esp + 0x2c], esp
mov ebx, esp
call dword [eax + 0x10]
mov edx, dword [esi + 0xc]
test edx, edx
lea ecx, [esi + 0xc]
jl 0x4085f8
cmp eax, dword [esi]
jne 0x4085f8
mov eax, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40862a
mov ecx, dword [esi + 4]
mov edx, dword [eax]
push 1
push ecx
mov ecx, eax
call dword [edx]
test eax, eax
je 0x4086a1
mov edx, dword [esi + 4]
mov dword [eax + 4], edx
mov ecx, dword [esi + 4]
inc ecx
mov edx, ecx
shr ecx, 2
add esi, 0x10
lea edi, [eax + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add eax, 0x10
mov dword [ebx], eax
mov eax, dword [esp + 0x1c]
push eax
call fcn.00414bc0
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x2c]
mov ecx, dword [ebp + 0x48c]
add esp, 8
add eax, 4
inc esi
cmp eax, ecx
mov dword [esp + 0x24], esi
mov dword [esp + 0x10], eax
jne 0x4084ec
mov esi, dword [ebp + 0x4ac]
push ecx
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
sub esi, 0x10
mov dword [esp + 0x2c], esp
mov ebx, esp
call dword [edx + 0x10]
mov edx, dword [esi + 0xc]
test edx, edx
lea ecx, [esi + 0xc]
jl 0x408691
cmp eax, dword [esi]
jne 0x408691
mov eax, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x4086c4
mov ecx, dword [esi + 4]
mov edx, dword [eax]
push 1
push ecx
mov ecx, eax
call dword [edx]
test eax, eax
jne 0x4086a6
jmp fcn.00401070
mov edx, dword [esi + 4]
mov dword [eax + 4], edx
mov ecx, dword [esi + 4]
inc ecx
mov edx, ecx
shr ecx, 2
add esi, 0x10
lea edi, [eax + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add eax, 0x10
mov dword [ebx], eax
call fcn.004012b0
mov ecx, dword [ebp + 0x478]
add esp, 4
test ecx, ecx
je 0x4086ea
mov eax, dword [ebp + 0x47c]
sub eax, ecx
sar eax, 2
test eax, eax
ja 0x408728
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x44d234
call fcn.00402550
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x44d218
mov byte [esp + 0x160], 7
call fcn.00402550
mov ecx, ebp
mov byte [esp + 0x15c], 5
call fcn.00404920
jmp 0x40881d
mov ebx, dword [ebp + 0x478]
cmp ebx, dword [ebp + 0x47c]
je 0x40881d
lea ebx, [ebx]
lea eax, [esp + 0x10]
push eax
call fcn.0041d270
mov ecx, dword [ebx]
mov edx, dword [esp + 0x14]
push ecx
push edx
lea eax, [esp + 0x3c]
push str._s_s_No
push eax
mov byte [esp + 0x168], 8
call fcn.00429bc1
mov esi, dword [esp + 0x24]
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
add esi, 0xfffffff0
add esp, 0x10
mov dword [esp + 0x2c], esp
mov dword [esp + 0x20], esp
call dword [edx + 0x10]
mov ecx, dword [esi + 0xc]
test ecx, ecx
lea edx, [esi + 0xc]
jl 0x40879e
cmp eax, dword [esi]
jne 0x40879e
mov eax, esi
mov ecx, 1
lock xadd dword [edx], ecx
jmp 0x4087d0
mov ecx, dword [esi + 4]
mov edx, dword [eax]
push 1
push ecx
mov ecx, eax
call dword [edx]
test eax, eax
je 0x4086a1
mov edx, dword [esi + 4]
mov dword [eax + 4], edx
mov ecx, dword [esi + 4]
inc ecx
mov edx, ecx
shr ecx, 2
add esi, 0x10
lea edi, [eax + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x34]
add eax, 0x10
push edx
mov dword [ecx], eax
call fcn.0041c900
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 8
mov byte [esp + 0x154], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40880c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp + 0x47c]
add ebx, 4
cmp ebx, eax
jne 0x408740
mov eax, dword [ebp + 0x1c]
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [ebp + 0x4ec], 0
mov byte [esp + 0x154], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40885d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x154], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408883
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x154], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4088a9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov dword [esp + 0x154], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4088d2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x14c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x148]
call fcn.00428f7e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x148
ret