Function at 0x4024f4
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe20
push ebx
mov eax, 0x49778c
call fcn.0048999c
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x60023]
mov eax, dword [ecx]
mov dword [ebp - 0x48], eax
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x60023]
mov eax, dword [ecx + 8]
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x60023]
cmp eax, dword [ecx + 0xc]
jle 0x40253e
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x60023]
mov ecx, dword [edx + 8]
jmp 0x40254a
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x60023]
mov ecx, dword [edx + 0xc]
mov dword [ebp - 0x4c], ecx
mov eax, dword [ebp + 8]
push dword [eax + 0xc]
call sub.KERNEL32.DLL_UnmapViewOfFile
mov edx, dword [ebp + 8]
push dword [edx + 4]
call sub.KERNEL32.DLL_CloseHandle
push 0
push 0
push dword [ebp - 0x4c]
mov ecx, dword [ebp + 8]
push dword [ecx]
call sub.KERNEL32.DLL_SetFilePointer
mov eax, dword [ebp + 8]
push dword [eax]
call sub.KERNEL32.DLL_SetEndOfFile
mov edx, dword [ebp + 8]
push dword [edx]
call sub.KERNEL32.DLL_CloseHandle
mov ecx, dword [ebp + 8]
xor eax, eax
mov dword [ecx + 4], eax
mov word [ebp - 0x34], 8
xor edx, edx
mov dword [ebp - 4], edx
lea edx, [ebp - 4]
inc dword [ebp - 0x28]
mov eax, dword [0x49d20c]
mov eax, dword [eax]
call fcn.00460e98
lea eax, [ebp - 4]
mov eax, dword [eax]
xor edx, edx
mov dword [ebp - 8], edx
lea edx, [ebp - 8]
inc dword [ebp - 0x28]
call fcn.0041c30c
lea eax, [ebp - 8]
push eax
mov edx, str.DzhP2P.dat
lea eax, [ebp - 0xc]
call fcn.00495460
inc dword [ebp - 0x28]
lea edx, [ebp - 0xc]
xor eax, eax
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x10]
inc dword [ebp - 0x28]
pop eax
call fcn.004955ec
cmp dword [ebp - 0x10], 0
je 0x4025f5
mov edx, dword [ebp - 0x10]
jmp 0x4025fa
mov edx, 0x4973b2
push edx
lea eax, [ebp - 0x118]
push eax
call fcn.004896f8
add esp, 8
dec dword [ebp - 0x28]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004955a8
dec dword [ebp - 0x28]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004955a8
dec dword [ebp - 0x28]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004955a8
dec dword [ebp - 0x28]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004955a8
push dword [ebp - 0x48]
mov word [ebp - 0x34], 0x14
xor ecx, ecx
mov dword [ebp - 0x14], ecx
lea edx, [ebp - 0x14]
inc dword [ebp - 0x28]
mov eax, dword [0x49d20c]
mov eax, dword [eax]
call fcn.00460e98
lea eax, [ebp - 0x14]
mov eax, dword [eax]
xor edx, edx
mov dword [ebp - 0x18], edx
lea edx, [ebp - 0x18]
inc dword [ebp - 0x28]
call fcn.0041c30c
lea eax, [ebp - 0x18]
push eax
mov edx, str.DzhP2P
lea eax, [ebp - 0x1c]
call fcn.00495460
inc dword [ebp - 0x28]
lea edx, [ebp - 0x1c]
xor eax, eax
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x20]
inc dword [ebp - 0x28]
pop eax
call fcn.004955ec
cmp dword [ebp - 0x20], 0
je 0x4026b2
mov edx, dword [ebp - 0x20]
jmp 0x4026b7
mov edx, 0x4973c3
push edx
push str._s_d.dat
lea eax, [ebp - 0x1e0]
push eax
call fcn.0048c234
add esp, 0x10
dec dword [ebp - 0x28]
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.004955a8
dec dword [ebp - 0x28]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.004955a8
dec dword [ebp - 0x28]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.004955a8
dec dword [ebp - 0x28]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004955a8
cmp dword [ebp - 0x48], 0
jle 0x402725
lea ecx, [ebp - 0x1e0]
push ecx
lea eax, [ebp - 0x118]
push eax
call sub.KERNEL32.DLL_MoveFileA
push 0
push 0x80
push 4
push 0
push 3
push 0xc0000000
lea edx, [ebp - 0x118]
push edx
call sub.KERNEL32.DLL_CreateFileA
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0x6b3b6
push dword [ebp + 8]
call fcn.00402404
pop ecx
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x60023]
mov eax, dword [ebp + 0xc]
mov dword [ecx], eax
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x60023]
mov eax, dword [ebp + 0x10]
mov dword [ecx + 4], eax
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x60023]
mov word [ecx + 0x6b3b0], 0
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x60023]
mov ecx, dword [ebp + 0x10]
mov dword [edx + 0x6b3b2], ecx
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x60023]
mov dword [edx + 8], 0x6b3b6
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x60023]
mov dword [eax + 0xc], 0x6c3b6
push 0x6b3a0
push 0
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x60023]
add ecx, 0x10
push ecx
call fcn.00489618
add esp, 0xc
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0x16b3b6
push dword [ebp + 8]
call fcn.00402404
pop ecx
push 0x60000
push 0
mov edx, dword [ebp + 8]
add edx, 0x10
push edx
call fcn.00489618
add esp, 0xc
mov ecx, dword [ebp + 8]
xor eax, eax
mov dword [ecx + 0x6001f], eax
xor edx, edx
mov dword [ebp - 0x50], edx
jmp 0x402835
push 8
push 0
mov ecx, dword [ebp - 0x50]
shl ecx, 6
mov eax, dword [ebp + 8]
add ecx, dword [eax + 0x60014]
add ecx, 0x26
push ecx
call fcn.00489618
add esp, 0xc
inc dword [ebp - 0x50]
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x60014]
movsx eax, word [ecx]
cmp eax, dword [ebp - 0x50]
jg 0x402813
mov eax, dword [ebp + 0xc]
mov ecx, 0x2710
cdq
idiv ecx
add eax, 0xfffff830
imul ecx, eax, 0x174
mov eax, dword [ebp + 0xc]
mov ebx, 0x2710
cdq
idiv ebx
mov eax, edx
mov ebx, 0x64
cdq
idiv ebx
mov edx, eax
shl eax, 5
sub eax, edx
add cx, ax
mov eax, dword [ebp + 0xc]
mov ebx, 0x64
cdq
idiv ebx
add cx, dx
mov eax, dword [ebp + 8]
mov word [eax + 0x60018], cx
mov edx, 3
mov eax, dword [ebp + 8]
call fcn.00402aac
mov edx, dword [ebp - 0x44]
mov dword fs:[0], edx
pop ebx
mov esp, ebp
pop ebp
ret