Function at 0x4056d8
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x27c
mov eax, dword [0x4ccbf8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
push edi
mov edi, edx
mov dword [ebp - 0x270], ebx
lea edx, [ebp - 0x138]
mov dword [ebp - 0x274], ebx
mov dword [ebp - 0x278], ebx
sub edx, ecx
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x40570c
mov ecx, str._s.tmp
lea eax, [ebp - 0x138]
push ecx
push eax
push 0x276
push str.D:MyProjectsProPilotTestMain.c
push ecx
lea eax, [ebp - 0x268]
push 0x12c
push eax
call fcn.004236c0
add esp, 0x1c
lea eax, [ebp - 0x268]
push ebx
push ebx
push 2
push ebx
push 1
push 0x40000000
push eax
call fcn.0041d7d0
mov esi, eax
add esp, 0x1c
cmp esi, 0xffffffff
jne 0x4057eb
call fcn.00435f20
test eax, eax
je 0x405844
call fcn.00435f20
cmp dword [eax], ebx
je 0x405844
mov eax, dword [0x4edee0]
test eax, eax
je 0x405793
mov esi, dword [eax + 0x190]
jmp 0x405799
mov esi, dword [0x4edee4]
call fcn.00435f20
test eax, eax
je 0x4057ab
call fcn.00435f20
mov edi, dword [eax]
jmp 0x4057ad
mov edi, ebx
mov ebx, str.Error_creating_file__s:__s
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00420470
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x138]
push eax
push ebx
push dword [0x4edee0]
push esi
push 0
push 0x279
push str.D:MyProjectsProPilotTestMain.c
push 0x103
call edi
add esp, 0x28
jmp 0x405844
mov eax, dword [0x5514ec]
lea edx, [ebp - 0x270]
push ecx
and edi, 1
push ecx
cmovne eax, dword [0x551464]
push eax
push str._::RdpHelper::_
push str.MainSettings
call fcn.00403e0b
add esp, 0x14
test eax, eax
jne 0x40584b
push 2
push esi
call fcn.0041ccd0
pop ecx
pop ecx
cmp dword [ebp - 0x270], ebx
je 0x405844
lea eax, [ebp - 0x270]
push eax
call fcn.0041f010
pop ecx
push dword [ebp - 0x270]
call fcn.0048690c
pop ecx
xor eax, eax
jmp 0x4059dc
mov eax, dword [0x5514ec]
add eax, 0x5e8
push 0x10
push eax
lea eax, [ebp - 0x274]
push eax
mov eax, dword [ebp - 0x270]
add eax, 4
push ebx
push eax
call fcn.0041f880
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x40597f
push 0
lea eax, [ebp - 0x26c]
push eax
push ebx
push dword [ebp - 0x274]
push esi
call fcn.00422aa0
add esp, 0x14
test eax, eax
je 0x40597f
cmp ebx, dword [ebp - 0x26c]
jne 0x40597f
push 1
push esi
call fcn.0041ccd0
xor ebx, ebx
pop ecx
inc ebx
pop ecx
test edi, edi
jne 0x4058cb
mov edx, dword [0x5514ec]
mov ecx, dword [0x551464]
call fcn.00404964
xor esi, esi
push 1
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x268]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x40598f
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0xa
jl 0x4058cd
jne 0x40598f
call fcn.00435f20
test eax, eax
je 0x40598f
call fcn.00435f20
cmp dword [eax], 0
je 0x40598f
mov eax, dword [0x4edee0]
test eax, eax
je 0x405927
mov esi, dword [eax + 0x190]
jmp 0x40592d
mov esi, dword [0x4edee4]
call fcn.00435f20
test eax, eax
je 0x40593f
call fcn.00435f20
mov edi, dword [eax]
jmp 0x405941
xor edi, edi
push str.Error_replacing_file__s:__s
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00420470
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x138]
push eax
push str.Error_replacing_file__s:__s
push dword [0x4edee0]
push esi
push 0
push 0x291
push str.D:MyProjectsProPilotTestMain.c
push 3
call edi
add esp, 0x28
jmp 0x40598f
push 2
push esi
call fcn.0041ccd0
mov ebx, dword [ebp - 0x278]
pop ecx
pop ecx
cmp dword [ebp - 0x274], 0
je 0x4059b8
lea eax, [ebp - 0x274]
push eax
call fcn.0041f010
pop ecx
push dword [ebp - 0x274]
call fcn.0048690c
and dword [ebp - 0x274], 0
pop ecx
cmp dword [ebp - 0x270], 0
je 0x4059da
lea eax, [ebp - 0x270]
push eax
call fcn.0041f010
pop ecx
push dword [ebp - 0x270]
call fcn.0048690c
pop ecx
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047f41c
leave
ret