Function at 0x4056d7
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x27c
mov eax, dword [0x4cdbf8]
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 0x40570b
mov ecx, str._s.tmp
lea eax, [ebp - 0x138]
push ecx
push eax
push 0x278
push str.D:MyProjectsProPilotTestMain.c
push ecx
lea eax, [ebp - 0x268]
push 0x12c
push eax
call fcn.00424110
add esp, 0x1c
lea eax, [ebp - 0x268]
push ebx
push ebx
push 2
push ebx
push 1
push 0x40000000
push eax
call fcn.0041ee40
mov esi, eax
add esp, 0x1c
cmp esi, 0xffffffff
jne 0x4057ea
call fcn.00436990
test eax, eax
je 0x405843
call fcn.00436990
cmp dword [eax], ebx
je 0x405843
mov eax, dword [0x4eeee0]
test eax, eax
je 0x405792
mov esi, dword [eax + 0x190]
jmp 0x405798
mov esi, dword [0x4eeee4]
call fcn.00436990
test eax, eax
je 0x4057aa
call fcn.00436990
mov edi, dword [eax]
jmp 0x4057ac
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.00420fd0
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x138]
push eax
push ebx
push dword [0x4eeee0]
push esi
push 0
push 0x27b
push str.D:MyProjectsProPilotTestMain.c
push 0x103
call edi
add esp, 0x28
jmp 0x405843
mov eax, dword [0x5524ec]
lea edx, [ebp - 0x270]
push ecx
and edi, 1
push ecx
cmovne eax, dword [0x552464]
push eax
push str._::RdpHelper::_
push str.MainSettings
call fcn.00403e0b
add esp, 0x14
test eax, eax
jne 0x40584a
push 2
push esi
call fcn.0041e340
pop ecx
pop ecx
cmp dword [ebp - 0x270], ebx
je 0x405843
lea eax, [ebp - 0x270]
push eax
call fcn.004201d0
pop ecx
push dword [ebp - 0x270]
call fcn.0048737c
pop ecx
xor eax, eax
jmp 0x4059d9
mov eax, dword [0x5524ec]
mov ecx, dword [ebp - 0x270]
add eax, 0x5e8
push 0x10
push eax
lea eax, [ebp - 0x274]
push eax
lea ecx, [ecx + 4]
call fcn.00417873
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x40597c
push 0
lea eax, [ebp - 0x26c]
push eax
push ebx
push dword [ebp - 0x274]
push esi
call fcn.00423600
add esp, 0x14
test eax, eax
je 0x40597c
cmp ebx, dword [ebp - 0x26c]
jne 0x40597c
push 1
push esi
call fcn.0041e340
xor ebx, ebx
pop ecx
inc ebx
pop ecx
test edi, edi
jne 0x4058c8
mov edx, dword [0x5524ec]
mov ecx, dword [0x552464]
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 0x40598c
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0xa
jl 0x4058ca
jne 0x40598c
call fcn.00436990
test eax, eax
je 0x40598c
call fcn.00436990
cmp dword [eax], 0
je 0x40598c
mov eax, dword [0x4eeee0]
test eax, eax
je 0x405924
mov esi, dword [eax + 0x190]
jmp 0x40592a
mov esi, dword [0x4eeee4]
call fcn.00436990
test eax, eax
je 0x40593c
call fcn.00436990
mov edi, dword [eax]
jmp 0x40593e
xor edi, edi
push str.Error_replacing_file__s:__s
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00420fd0
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x138]
push eax
push str.Error_replacing_file__s:__s
push dword [0x4eeee0]
push esi
push 0
push 0x293
push str.D:MyProjectsProPilotTestMain.c
push 3
call edi
add esp, 0x28
jmp 0x40598c
push 2
push esi
call fcn.0041e340
mov ebx, dword [ebp - 0x278]
pop ecx
pop ecx
cmp dword [ebp - 0x274], 0
je 0x4059b5
lea eax, [ebp - 0x274]
push eax
call fcn.004201d0
pop ecx
push dword [ebp - 0x274]
call fcn.0048737c
and dword [ebp - 0x274], 0
pop ecx
cmp dword [ebp - 0x270], 0
je 0x4059d7
lea eax, [ebp - 0x270]
push eax
call fcn.004201d0
pop ecx
push dword [ebp - 0x270]
call fcn.0048737c
pop ecx
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047fe8c
leave
ret