Function at 0x5c5340
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff6ac
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x954], edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x5c5927
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
xor edx, edx
mov dword [eax + 0x68], edx
lea eax, [ebp - 4]
mov edx, dword [setsockopt]
mov edx, dword [edx + 0x17c]
call fcn.0040542c
mov eax, dword [ebp - 4]
call fcn.0040adc4
test al, al
jne 0x5c53a9
mov eax, dword [ebp - 4]
call fcn.0040afe0
lea eax, [ebp - 8]
mov ecx, 0x5c5940
mov edx, dword [ebp - 4]
call fcn.004056ac
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x5c]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [ebp - 8]
call fcn.0040ada0
test al, al
je 0x5c53de
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x5c]
mov edx, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x68]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x5c]
mov edx, 0x5c5958
mov ecx, dword [eax]
call dword [ecx + 0x54]
inc eax
jne 0x5c5401
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x5c]
mov edx, 0x5c5958
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 0x18]
mov ebx, dword [eax + 0x5c]
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x14]
mov ecx, eax
dec ecx
mov eax, ebx
xor edx, edx
call fcn.004e5b30
lea eax, [ebp - 8]
mov ecx, 0x5c5968
mov edx, dword [ebp - 4]
call fcn.004056ac
xor ebx, ebx
mov eax, dword [ebp - 8]
call fcn.0040ada0
test al, al
je 0x5c584c
push 0x22
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x41d824]
call fcn.00422d20
mov esi, eax
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x60], esi
push 0
push 0x49e
mov eax, esi
mov edx, dword [eax]
call dword [edx]
call fcn.00406620
cmp edx, 0
jne 0x5c546f
cmp eax, 0
je 0x5c56c4
push 0
push 0x470
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x60]
mov edx, dword [eax]
call dword [edx]
call fcn.00406620
cmp edx, 0
jne 0x5c5497
cmp eax, 0
jne 0x5c5497
mov bl, 1
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x60]
call fcn.00404430
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.0040ae70
call fcn.0040d640
fstp qword [ebp - 0x40]
wait
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
lea eax, [ebp - 0x10]
mov edx, 0x5c5980
call fcn.0040e390
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push 0x5c599c
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405728
mov eax, dword [ebp - 0xc]
call fcn.00405824
push eax
mov eax, dword [ebp - 8]
call fcn.00405824
push eax
call sub.kernel32.dll_MoveFileA
push 0xffff
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x41d824]
call fcn.00422d20
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x60], eax
test bl, bl
je 0x5c5866
push 0x22
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x41d824]
call fcn.00422d20
mov dword [ebp - 0x30], eax
xor eax, eax
push ebp
push 0x5c56ad
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x94e]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x60]
mov ecx, 0x470
mov ebx, dword [eax]
call dword [ebx + 0xc]
cmp eax, 0x470
jne 0x5c5684
lea eax, [ebp - 0x4de]
xor ecx, ecx
mov edx, 0x49e
call fcn.00403ae0
movzx eax, byte [ebp - 0x94e]
mov byte [ebp - 0x4de], al
lea esi, [ebp - 0x94d]
lea edi, [ebp - 0x4dd]
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea eax, [ebp - 0x4af]
lea edx, [ebp - 0x91f]
mov cl, 0xe
call fcn.004039d0
mov eax, dword [ebp - 0x910]
mov dword [ebp - 0x4a0], eax
movzx eax, word [ebp - 0x8c8]
mov word [ebp - 0x42a], ax
lea edx, [ebp - 0x8c6]
lea eax, [ebp - 0x428]
mov ecx, 0x3e8
call fcn.004031fc
movzx eax, word [ebp - 0x908]
mov word [ebp - 0x498], ax
mov eax, dword [ebp - 0x90c]
mov dword [ebp - 0x49c], eax
movzx eax, word [ebp - 0x906]
mov word [ebp - 0x490], ax
movzx eax, word [ebp - 0x904]
mov word [ebp - 0x48e], ax
movzx eax, byte [ebp - 0x902]
mov byte [ebp - 0x496], al
movzx eax, byte [ebp - 0x901]
mov byte [ebp - 0x495], al
push dword [ebp - 0x8fc]
push dword [ebp - 0x900]
call fcn.004e55c8
mov dword [ebp - 0x494], eax
mov eax, dword [ebp - 0x8f8]
mov dword [ebp - 0x48c], eax
mov al, byte [ebp - 0x8f4]
mov byte [ebp - 0x488], al
lea esi, [ebp - 0x8f3]
lea edi, [ebp - 0x487]
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edx, [ebp - 0x4de]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x60]
mov ecx, 0x49e
mov ebx, dword [eax]
call dword [ebx + 0x10]
jmp 0x5c553c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5c56b4
mov eax, dword [ebp - 0x30]
call fcn.00404430
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x60]
call fcn.00404430
mov eax, dword [ebp - 0x18]
xor edx, edx
mov dword [eax + 0x60], edx
ret
call fcn.0040d640
fstp qword [ebp - 0x28]
wait
lea edx, [ebp - 0x4de]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x60]
mov ecx, 0x49e
mov ebx, dword [eax]
call dword [ebx + 0xc]
cmp eax, 0x49e
jne 0x5c5866
cmp byte [ebp - 0x4de], 0
jne 0x5c5767
lea eax, [ebp - 0x4af]
mov edx, 0x5c59a4
movzx ecx, byte [eax]
inc ecx
call fcn.00403a70
je 0x5c5767
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x4b3]
push dword [ebp - 0x4b7]
call fcn.004b05fc
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0x1e
jl 0x5c5736
mov byte [ebp - 0x4de], 1
jmp 0x5c5767
cmp dword [ebp - 0x4a0], 0
jne 0x5c5767
cmp dword [ebp - 0x49c], 0
jne 0x5c5767
cmp byte [ebp - 0x4dc], 0
je 0x5c5760
cmp byte [ebp - 0x4dd], 0
je 0x5c5767
cmp dword [ebp - 0x2c], 3
jl 0x5c5767
mov byte [ebp - 0x4de], 1
cmp byte [ebp - 0x4de], 0
jne 0x5c5830
inc dword [ebp - 0x1c]
lea eax, [ebp - 0x954]
lea edx, [ebp - 0x4af]
call fcn.004055f8
mov edx, dword [ebp - 0x954]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x5c]
call fcn.004e58a8
mov esi, eax
cmp esi, 0xffffffff
je 0x5c581d
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x5c]
mov edx, esi
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov ebx, eax
test ebx, ebx
jne 0x5c57e3
mov eax, 8
call fcn.00402f94
mov ebx, eax
mov dword [ebx], 0xffffffff
mov dl, 1
mov eax, dword [0x41cf58]
call fcn.00404400
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x5c]
mov ecx, ebx
mov edx, esi
mov esi, dword [eax]
call dword [esi + 0x24]
mov eax, 0x32
call fcn.00402f94
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x68]
mov edx, dword [ebp - 0x20]
mov dword [edx], eax
mov eax, dword [ebp - 0x20]
lea edi, [eax + 4]
lea esi, [ebp - 0x4dd]
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov eax, dword [ebx + 4]
mov edx, dword [ebp - 0x20]
call fcn.0041fa54
jmp 0x5c5841
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + 0x68]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x64]
call fcn.0041fa54
jmp 0x5c5841
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + 0x68]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x64]
call fcn.0041fa54
mov eax, dword [ebp - 0x18]
inc dword [eax + 0x68]
jmp 0x5c56cd
push 0xffff
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x41d824]
call fcn.00422d20
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x60], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x5c]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x5c58c5
inc eax
mov dword [ebp - 0x34], eax
xor esi, esi
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x5c]
mov edx, esi
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov ebx, eax
test ebx, ebx
jne 0x5c58bf
mov eax, 8
call fcn.00402f94
mov ebx, eax
mov dword [ebx], 0xffffffff
mov dl, 1
mov eax, dword [0x41cf58]
call fcn.00404400
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x5c]
mov ecx, ebx
mov edx, esi
mov ebx, dword [eax]
call dword [ebx + 0x24]
inc esi
dec dword [ebp - 0x34]
jne 0x5c587c
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x5c]
mov edx, 0x5c5958
call fcn.004e58a8
mov esi, eax
cmp esi, 0xffffffff
je 0x5c58ef
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x5c]
mov edx, esi
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x6c], eax
mov eax, dword [ebp - 0x18]
mov byte [eax + 0x70], 1
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x74], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5c592e
lea eax, [ebp - 0x954]
call fcn.00405394
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.004053b8
ret