Function at 0x50a040
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a60e8
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x634384]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x4c], edi
call fcn.00507c70
push edi
mov ecx, ebx
call fcn.00507c70
xor esi, esi
mov dword [ebp - 0x50], esi
mov dword [ebp - 4], esi
mov ecx, dword [ebx + 0x1a4]
mov eax, dword [ebp - 0x48]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x50a0b8
test dl, dl
je 0x50a0b4
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x50a0b8
add eax, 2
add ecx, 2
test dl, dl
jne 0x50a098
xor eax, eax
jmp 0x50a0bd
sbb eax, eax
or eax, 1
test eax, eax
jne 0x50a0fe
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x50a0c6
sub ecx, edx
push 0x64f17e
lea edi, [ecx + 1]
push edi
call fcn.00539950
mov esi, eax
add esp, 8
mov dword [ebp - 0x50], esi
test esi, esi
jne 0x50a0f1
or edi, 0xffffffff
jmp 0x50a23a
push dword [ebp - 0x4c]
push edi
push esi
call fcn.0055c7a7
add esp, 0xc
xor edi, edi
cmp dword [ebx + 0x1ac], edi
jne 0x50a208
xor eax, eax
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov byte [ebp - 4], 1
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x48]
mov ecx, ebx
call fcn.005086d0
push eax
call fcn.00432e80
xor eax, eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
add esp, 8
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 2
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x4c]
mov ecx, ebx
call fcn.005086d0
push eax
call fcn.00432e80
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.0043c4c0
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x41], al
cmovae ecx, dword [ebp - 0x28]
push ecx
call fcn.0043c4c0
mov cl, byte [ebp - 0x41]
add esp, 0x10
cmp cl, al
je 0x50a19f
or edi, 0xffffffff
jmp 0x50a1ec
test cl, cl
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0x28]
je 0x50a1cb
cmp dword [ebp - 0x14], 8
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.004459d0
add esp, 8
mov edi, eax
neg edi
sbb edi, edi
jmp 0x50a1ec
cmp dword [ebp - 0x14], 8
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov edi, eax
neg edi
sbb edi, edi
neg edi
dec edi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.0041ba60
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.0041ba60
test edi, edi
jne 0x50a23a
test esi, esi
je 0x50a23a
cmp dword [ebx + 0x1a8], 0
je 0x50a223
push dword [ebx + 0x1a4]
call fcn.00539650
add esp, 4
mov eax, esi
mov dword [ebx + 0x1a8], 1
xor esi, esi
mov dword [ebp - 0x50], esi
mov dword [ebx + 0x1a4], eax
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x50a24e
push esi
call fcn.00539650
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005395e6
mov esp, ebp
pop ebp
ret 8