Function at 0x5d9b48
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 0x5da12f
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 [select]
mov edx, dword [edx + 0x17c]
call fcn.0040542c
mov eax, dword [ebp - 4]
call fcn.0040adb8
test al, al
jne 0x5d9bb1
mov eax, dword [ebp - 4]
call fcn.0040afd4
lea eax, [ebp - 8]
mov ecx, 0x5da148
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.0040ad94
test al, al
je 0x5d9be6
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, 0x5da160
mov ecx, dword [eax]
call dword [ecx + 0x54]
inc eax
jne 0x5d9c09
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x5c]
mov edx, 0x5da160
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.00498fe0
lea eax, [ebp - 8]
mov ecx, 0x5da170
mov edx, dword [ebp - 4]
call fcn.004056ac
xor ebx, ebx
mov eax, dword [ebp - 8]
call fcn.0040ad94
test al, al
je 0x5da054
push 0x22
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x41d818]
call fcn.00422d14
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 0x5d9c77
cmp eax, 0
je 0x5d9ecc
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 0x5d9c9f
cmp eax, 0
jne 0x5d9c9f
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.0040ae64
call fcn.0040d634
fstp qword [ebp - 0x40]
wait
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
lea eax, [ebp - 0x10]
mov edx, 0x5da188
call fcn.0040e384
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push 0x5da1a4
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 [0x41d818]
call fcn.00422d14
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x60], eax
test bl, bl
je 0x5da06e
push 0x22
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x41d818]
call fcn.00422d14
mov dword [ebp - 0x30], eax
xor eax, eax
push ebp
push 0x5d9eb5
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 0x5d9e8c
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.0048c9f8
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 0x5d9d44
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5d9ebc
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.0040d634
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 0x5da06e
cmp byte [ebp - 0x4de], 0
jne 0x5d9f6f
lea eax, [ebp - 0x4af]
mov edx, 0x5da1ac
movzx ecx, byte [eax]
inc ecx
call fcn.00403a70
je 0x5d9f6f
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x4b3]
push dword [ebp - 0x4b7]
call fcn.00489b6c
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0x1e
jl 0x5d9f3e
mov byte [ebp - 0x4de], 1
jmp 0x5d9f6f
cmp dword [ebp - 0x4a0], 0
jne 0x5d9f6f
cmp dword [ebp - 0x49c], 0
jne 0x5d9f6f
cmp byte [ebp - 0x4dc], 0
je 0x5d9f68
cmp byte [ebp - 0x4dd], 0
je 0x5d9f6f
cmp dword [ebp - 0x2c], 3
jl 0x5d9f6f
mov byte [ebp - 0x4de], 1
cmp byte [ebp - 0x4de], 0
jne 0x5da038
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.00498d58
mov esi, eax
cmp esi, 0xffffffff
je 0x5da025
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 0x5d9feb
mov eax, 8
call fcn.00402f94
mov ebx, eax
mov dword [ebx], 0xffffffff
mov dl, 1
mov eax, dword [0x41cf4c]
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.0041fa48
jmp 0x5da049
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + 0x68]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x64]
call fcn.0041fa48
jmp 0x5da049
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + 0x68]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x64]
call fcn.0041fa48
mov eax, dword [ebp - 0x18]
inc dword [eax + 0x68]
jmp 0x5d9ed5
push 0xffff
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x41d818]
call fcn.00422d14
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 0x5da0cd
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 0x5da0c7
mov eax, 8
call fcn.00402f94
mov ebx, eax
mov dword [ebx], 0xffffffff
mov dl, 1
mov eax, dword [0x41cf4c]
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 0x5da084
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x5c]
mov edx, 0x5da160
call fcn.00498d58
mov esi, eax
cmp esi, 0xffffffff
je 0x5da0f7
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 0x5da136
lea eax, [ebp - 0x954]
call fcn.00405394
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.004053b8
ret