Function at 0x440066
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.0042f682
pop ecx
test al, al
jne 0x440360
lea ecx, [ebp + 0xc]
call fcn.0040a256
test al, al
jne 0x440360
push esi
call fcn.0043fea2
pop ecx
test al, al
jne 0x4400a9
push 2
call fcn.00449755
pop ecx
jmp 0x440365
push esi
lea ecx, [ebp + 0xc]
call fcn.00425c54
test al, al
je 0x4400bd
mov al, 1
jmp 0x440367
test byte [ebp + 0x18], 0x80
mov edi, 0x47e734
je 0x44010b
lea eax, [ebp - 0xc]
push esi
push eax
call fcn.00440f42
mov ecx, edi
cmp dword [eax], 0
cmovne ecx, dword [eax]
mov eax, edi
cmp dword [ebp + 0xc], 0
push ecx
cmovne eax, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00440a72
add esp, 0x14
lea ecx, [ebp + 0xc]
push eax
call fcn.0042402b
lea ecx, [ebp - 0x18]
call fcn.00424b62
lea ecx, [ebp - 0xc]
call fcn.00424b62
xor ebx, ebx
test dword [ebp + 0x18], 0x200
je 0x440131
push ebx
sub esp, 0xc
mov eax, esp
push esi
push eax
call fcn.00440d9f
pop ecx
pop ecx
lea eax, [ebp + 0xc]
push eax
call fcn.00441a52
add esp, 0x14
test byte [ebp + 0x18], 0x40
je 0x440158
cmp dword [ebp + 0xc], ebx
mov eax, edi
cmovne eax, dword [ebp + 0xc]
push eax
call fcn.0043ee58
pop ecx
test al, al
je 0x440158
push 5
call fcn.00449755
pop ecx
jmp 0x440369
push closesocket
push esi
lea ecx, [ebp + 0xc]
call fcn.00423e4f
test eax, eax
je 0x4401e0
cmp dword [ebp + 0xc], ebx
mov eax, edi
cmovne eax, dword [ebp + 0xc]
push eax
push esi
call fcn.00441f49
pop ecx
pop ecx
test al, al
jne 0x4401e0
test byte [ebp + 0x18], 1
je 0x44019e
cmp dword [ebp + 0xc], ebx
mov eax, edi
cmovne eax, dword [ebp + 0xc]
push eax
call fcn.0043fea2
pop ecx
test al, al
jne 0x44019e
push 2
jmp 0x44014d
test byte [ebp + 0x18], 2
je 0x4401bc
cmp dword [ebp + 0xc], ebx
mov eax, edi
cmovne eax, dword [ebp + 0xc]
push eax
call fcn.0043fea2
pop ecx
test al, al
je 0x4401e0
push 0x50
jmp 0x44014d
test byte [ebp + 0x18], 8
jne 0x4401e0
cmp dword [ebp + 0xc], ebx
mov eax, edi
push 0x800
cmovne eax, dword [ebp + 0xc]
push eax
call fcn.0043fbd9
pop ecx
pop ecx
test al, al
je 0x440369
test byte [ebp + 0x18], 4
je 0x4401f6
cmp dword [ebp + 0xc], ebx
mov eax, edi
cmovne eax, dword [ebp + 0xc]
push eax
call fcn.0043dc44
pop ecx
test byte [ebp + 0x18], 8
je 0x440349
call fcn.00448771
test al, al
je 0x44029e
mov ecx, dword [0x4ae08c]
test ecx, ecx
je 0x44023d
cmp dword [ebp + 0xc], ebx
mov eax, edi
push 5
cmovne eax, dword [ebp + 0xc]
push eax
push esi
call ecx
test eax, eax
je 0x44023d
push 0xaa
call fcn.00449755
xor eax, eax
pop ecx
inc eax
jmp 0x44036b
call sub.KERNEL32.dll_GetLastError
mov esi, eax
lea eax, [ebp - 0x30]
push eax
call fcn.00449a44
mov ecx, edi
mov dword [esp], 0x488a10
cmp dword [eax], ebx
cmovne ecx, dword [eax]
lea eax, [ebp - 0x24]
push ecx
push eax
call fcn.00440a72
mov ecx, edi
cmp dword [eax], ebx
cmovne ecx, dword [eax]
push ecx
call fcn.0043fea2
add esp, 0x10
lea ecx, [ebp - 0x24]
mov bl, al
call fcn.00424b62
lea ecx, [ebp - 0x30]
call fcn.00424b62
push esi
call fcn.00449755
pop ecx
test bl, bl
jne 0x440299
xor ebx, ebx
jmp 0x44036d
mov esi, dword [ebp + 8]
xor ebx, ebx
lea ecx, [ebp - 0x18]
call fcn.0042717c
cmp dword [ebp + 0xc], 0
lea eax, [ebp - 0x18]
push ebx
cmovne edi, dword [ebp + 0xc]
push 0x47f86c
push ebx
push eax
lea eax, [ebp - 0x30]
push edi
push eax
call fcn.0044130d
pop ecx
pop ecx
push eax
call fcn.0044a36c
add esp, 0x14
lea ecx, [ebp - 0x30]
call fcn.00424b62
lea ecx, [ebp - 0xc]
call fcn.0042717c
push ebx
push 0x47f86c
push ebx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x30]
push esi
push eax
call fcn.0044130d
pop ecx
pop ecx
push eax
call fcn.0044a36c
add esp, 0x14
lea ecx, [ebp - 0x30]
call fcn.00424b62
cmp dword [ebp - 0xc], 0
mov ecx, 0x47e730
mov eax, ecx
cmovne eax, dword [ebp - 0xc]
cmp dword [ebp - 0x18], 0
push eax
cmovne ecx, dword [ebp - 0x18]
push ecx
call fcn.00444082
pop ecx
pop ecx
test al, al
je 0x440337
push 0xaa
call fcn.00449755
pop ecx
mov bl, 1
lea ecx, [ebp - 0xc]
call fcn.00424b62
lea ecx, [ebp - 0x18]
call fcn.00424b62
jmp 0x44036d
cmp dword [ebp + 0xc], ebx
cmovne edi, dword [ebp + 0xc]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x44036d
mov bl, 1
jmp 0x44036d
call fcn.00449763
xor al, al
mov bl, al
mov al, bl
mov bl, al
lea ecx, [ebp + 0xc]
call fcn.00424b62
pop edi
pop esi
mov al, bl
pop ebx
leave
ret