Function at 0x450f10
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
push ebx
push esi
lea esi, [ebp - 0x140]
mov dword [ebp - 4], 0
push edi
mov edi, edx
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
sub esi, ecx
nop dword [eax + eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [esi + ecx - 1], al
test al, al
jne 0x450f40
push str._s.tmp
lea eax, [ebp - 0x140]
push eax
push 0x375
push str.Main.c
push str._s.tmp
lea eax, [ebp - 0x270]
push 0x12c
push eax
call fcn.00482bc0
add esp, 0x1c
lea eax, [ebp - 0x270]
push 0
push 0
push 2
push 0
push 1
push 0x40000000
push eax
call fcn.0047d580
mov esi, eax
add esp, 0x1c
cmp esi, 0xffffffff
jne 0x451034
call fcn.00493410
test eax, eax
je 0x451089
call fcn.00493410
cmp dword [eax], 0
je 0x451089
mov eax, dword [0x52e820]
test eax, eax
je 0x450fd1
mov esi, dword [eax + 0x190]
jmp 0x450fd7
mov esi, dword [0x52e824]
call fcn.00493410
test eax, eax
je 0x450fe9
call fcn.00493410
mov edi, dword [eax]
jmp 0x450feb
xor edi, edi
push str.Error_creating_file__s:__s
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0047f8c0
add esp, 8
push eax
lea eax, [ebp - 0x140]
push eax
push str.Error_creating_file__s:__s
push dword [0x52e820]
push esi
push 0
push 0x378
push str.Main.c
push 0x103
call edi
add esp, 0x28
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x59174c]
lea edx, [ebp - 4]
sub esp, 8
and edi, 1
cmovne eax, dword [0x591728]
push eax
push str._::RdpHelper::_
push str.MainSettings
call fcn.004046a0
add esp, 0x14
test eax, eax
jne 0x451092
push 2
push esi
call fcn.0047ca80
add esp, 8
cmp dword [ebp - 4], 0
je 0x451089
lea eax, [ebp - 4]
push eax
call fcn.0047e900
add esp, 4
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x59174c]
mov ecx, dword [ebp - 4]
add eax, 0x714
push 0x10
push eax
lea eax, [ebp - 8]
push eax
lea ecx, [ecx + 4]
call fcn.0046fab0
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x45122e
push 0
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp - 8]
push esi
call fcn.00482100
add esp, 0x14
test eax, eax
je 0x45122e
cmp ebx, dword [ebp - 0x10]
jne 0x45122e
push 1
push esi
call fcn.0047ca80
add esp, 8
mov dword [ebp - 0xc], 1
test edi, edi
jne 0x451106
mov edx, dword [0x59174c]
mov ecx, dword [0x591728]
call fcn.0044faf0
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExA]
xor esi, esi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 1
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x270]
push eax
call ebx
test eax, eax
jne 0x4511c3
push 0x64
call edi
inc esi
cmp esi, 0xa
jl 0x451114
jne 0x4511c3
call fcn.00493410
test eax, eax
je 0x451239
call fcn.00493410
cmp dword [eax], 0
je 0x451239
mov eax, dword [0x52e820]
test eax, eax
je 0x45116a
mov esi, dword [eax + 0x190]
jmp 0x451170
mov esi, dword [0x52e824]
call fcn.00493410
test eax, eax
je 0x451182
call fcn.00493410
mov edi, dword [eax]
jmp 0x451184
xor edi, edi
push str.Error_replacing_file__s:__s
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0047f8c0
add esp, 8
push eax
lea eax, [ebp - 0x140]
push eax
push str.Error_replacing_file__s:__s
push dword [0x52e820]
push esi
push 0
push 0x396
push str.Main.c
push 3
call edi
add esp, 0x28
jmp 0x451239
call fcn.00493410
test eax, eax
je 0x451239
call fcn.00493410
cmp dword [eax], 0
je 0x451239
mov eax, dword [0x52e820]
test eax, eax
je 0x4511e7
mov esi, dword [eax + 0x190]
jmp 0x4511ed
mov esi, dword [0x52e824]
call fcn.00493410
test eax, eax
je 0x4511ff
call fcn.00493410
mov eax, dword [eax]
jmp 0x451201
xor eax, eax
push str.Saved_cfg_file__s
lea ecx, [ebp - 0x140]
push ecx
push str.Saved_cfg_file__s
push dword [0x52e820]
push esi
push 0
push 0x398
push str.Main.c
push 0
call eax
add esp, 0x24
jmp 0x451239
push 2
push esi
call fcn.0047ca80
add esp, 8
cmp dword [ebp - 8], 0
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
je 0x451260
lea eax, [ebp - 8]
push eax
call fcn.0047e900
add esp, 4
push dword [ebp - 8]
call esi
add esp, 4
mov dword [ebp - 8], 0
cmp dword [ebp - 4], 0
je 0x45127a
lea eax, [ebp - 4]
push eax
call fcn.0047e900
add esp, 4
push dword [ebp - 4]
call esi
add esp, 4
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret