Function at 0x528410
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x575f70
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x5e95e0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov eax, dword [esi + 0x30]
add eax, 0x20
push eax
mov dword [ebp - 0x258], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esi + 0x160]
cmp ecx, dword [0x58c4f4]
je 0x52848a
mov dword [ebp - 4], 0
mov edx, dword [esi + 0x15c]
mov eax, dword [edx + 0x4c]
lea ecx, [esi + 0x15c]
call eax
jmp 0x52848a
cmp dword [esi + 0x78], 0
je 0x5287b1
cmp dword [esi + 0xb4], 0
jne 0x5287b1
cmp dword [esi + 0x8c], 0
jne 0x5287b1
mov ecx, dword [0x58c4f4]
cmp dword [esi + 0x120], ecx
mov dword [esi + 0x8c], 1
je 0x52878e
mov eax, dword [esi + 0x12c]
test eax, eax
je 0x5284e5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x12c], 0
cmp dword [esi + 0x18], 0
je 0x5285bc
mov dword [ebp - 4], 2
mov edx, dword [esi + 0x11c]
mov eax, dword [edx + 0x30]
lea edi, [esi + 0x11c]
mov ecx, edi
call eax
mov ebx, eax
push ebx
mov dword [ebp - 0x25c], edx
call fcn.005308fb
mov edx, dword [edi]
add esp, 4
push 0
push 0
mov dword [ebp - 0x18], eax
mov eax, dword [edx + 0x28]
push 0
mov ecx, edi
call eax
mov edx, dword [edi]
mov eax, dword [ebp - 0x18]
mov edx, dword [edx + 0x34]
push ebx
push eax
mov ecx, edi
call edx
push ebx
call fcn.005308fb
mov ecx, dword [ebp - 0x18]
add esp, 4
push eax
push ebx
push ecx
mov dword [ebp - 0x254], eax
call fcn.0052a950
mov ebx, eax
test ebx, ebx
jle 0x528588
mov edx, dword [edi]
mov eax, dword [edx + 0x28]
push 0
push 0
push 0
mov ecx, edi
call eax
mov edx, dword [edi]
mov eax, dword [ebp - 0x254]
mov edx, dword [edx + 0x38]
push ebx
push eax
mov ecx, edi
call edx
mov eax, ebx
cdq
push edx
push eax
mov eax, dword [edi]
mov eax, dword [eax + 0x2c]
mov ecx, edi
call eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.005308f6
mov edx, dword [ebp - 0x254]
add esp, 4
push edx
call fcn.005308f6
add esp, 4
jmp 0x5285bc
xor eax, eax
mov dword [ebp - 0x254], eax
mov dword [ebp - 0x25c], eax
lea ebx, [ebx]
mov dword [ebp - 4], 4
mov eax, dword [esi + 0x11c]
mov edx, dword [eax + 0x4c]
lea ecx, [esi + 0x11c]
call edx
mov dword [ebp - 4], 0xffffffff
jmp 0x528667
push str..down
lea edi, [esi + 0x98]
lea edx, [ebp - 0x25c]
push edi
push edx
call fcn.00401ba0
mov ecx, dword [edi]
mov eax, dword [eax]
add esp, 0xc
push 9
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [ebp - 0x25c]
mov ebx, eax
call fcn.004a4690
test ebx, ebx
jne 0x5286cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xbc], eax
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x64]
test eax, eax
je 0x52875c
push 3
push esi
push 0x4d3
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x52875c
mov dword [ebp - 4], 6
mov ecx, dword [esi + 0x90]
xor eax, eax
cmp dword [esi + 0x94], eax
jl 0x528755
jg 0x5286ec
cmp ecx, eax
jbe 0x528755
lea ecx, [ebp - 0x250]
mov dword [ebp - 0x250], eax
mov dword [ebp - 0x24c], eax
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x240], eax
mov dword [ebp - 0x23c], eax
mov eax, dword [edi]
push ecx
push eax
call fcn.0053f099
mov eax, dword [esi + 0x94]
mov edx, dword [esi + 0x90]
lea ecx, [ebp - 0x250]
mov dword [ebp - 0x244], eax
mov eax, dword [edi]
push ecx
push eax
mov dword [ebp - 0x248], edx
call fcn.0053f28e
mov edi, dword [edi]
lea edx, [ebp - 0x250]
push edx
push edi
call fcn.0053f099
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x5f31dc]
test eax, eax
je 0x5287b1
mov ecx, dword [0x5f31e0]
push 0
push esi
push 1
push ecx
call eax
jmp 0x5287b1
mov edx, dword [esi + 0x30]
mov dword [esi + 0xbc], 6
mov eax, dword [edx + 0x64]
test eax, eax
je 0x5287b1
push 4
push esi
push 0x4d3
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov dword [ebp - 4], 8
mov eax, dword [0x58c4f4]
cmp dword [esi + 0x120], eax
je 0x528942
mov eax, dword [esi + 0x12c]
test eax, eax
je 0x5287e4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x12c], 0
call fcn.0052a2d0
mov ecx, dword [esi + 0x74]
xor eax, eax
test ecx, ecx
jl 0x528849
mov eax, ecx
mov edx, dword [esi + 0x11c]
push 0
lea edi, [esi + 0x11c]
push 0
push eax
mov eax, dword [edx + 0x28]
mov ecx, edi
call eax
xor ebx, ebx
mov edi, edi
cmp ebx, dword [esi + 0x3c]
jge 0x528887
lea ecx, [esi + 0x34]
mov eax, ebx
call fcn.00527b60
mov edx, dword [edi]
push 4
push eax
mov eax, dword [edx + 0x38]
mov ecx, edi
call eax
mov eax, ebx
lea ecx, [esi + 0x34]
call fcn.00527b60
mov edx, dword [edi]
add eax, 4
push 4
push eax
mov eax, dword [edx + 0x38]
mov ecx, edi
call eax
add ebx, 1
jmp 0x528810
mov ecx, dword [esi + 0x3c]
test ecx, ecx
jle 0x5287f4
lea eax, [ecx - 1]
test eax, eax
jl 0x528882
cmp eax, ecx
jge 0x528882
lea edx, [eax + eax*4]
mov eax, dword [esi + 0x38]
lea edx, [eax + edx*4]
lea eax, [ecx - 1]
test eax, eax
jl 0x528882
cmp eax, ecx
jge 0x528882
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x38]
lea eax, [eax + ecx*4]
mov eax, dword [eax + 4]
add eax, dword [edx]
jmp 0x5287f4
jmp fcn.00530cad
mov ecx, dword [esi + 0x3c]
mov edx, dword [edi]
mov edx, dword [edx + 0x38]
push 4
lea eax, [ebp - 0x254]
mov dword [ebp - 0x254], ecx
push eax
mov ecx, edi
call edx
mov eax, dword [edi]
mov edx, dword [eax + 0x38]
push 8
lea ebx, [esi + 0x90]
push ebx
mov ecx, edi
call edx
mov edx, dword [edi]
lea eax, [esi + 0x74]
push 4
push eax
mov eax, dword [edx + 0x38]
mov ecx, edi
call eax
mov ecx, dword [str.tang]
mov dl, byte [0x5c6b4c]
xor eax, eax
mov dword [ebp - 0x1c], ecx
mov word [ebp - 0x17], ax
mov byte [ebp - 0x15], al
mov eax, dword [edi]
push 4
lea ecx, [ebp - 0x1c]
mov byte [ebp - 0x18], dl
mov edx, dword [eax + 0x38]
push ecx
mov ecx, edi
call edx
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
mov ecx, edi
call edx
mov dword [ebp - 0x25c], edx
mov edx, dword [edi]
push 0
push eax
mov eax, dword [edx + 0x2c]
mov ecx, edi
call eax
mov edx, dword [edi]
mov eax, dword [edx + 0x4c]
mov ecx, edi
call eax
mov ecx, dword [esi + 0x7c]
add dword [esi + 0xac], ecx
mov edx, dword [ebx]
mov eax, dword [ebx + 4]
mov ecx, dword [esi + 0x74]
mov dword [esi + 0xa4], edx
mov dword [esi + 0xa8], eax
mov dword [esi + 0xa0], ecx
jmp 0x528942
mov edx, dword [esi + 0x30]
add edx, 0x20
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00552101
mov esp, ebp
pop ebp
ret