Function at 0x4c3720
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xbc
mov dword [ebp - 0x98], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x9c], edx
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x90], ecx
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x44], 8
mov dword [esp], 0x20
call fcn.005c2f70
mov dword [ebp - 0x48], eax
mov ebx, eax
mov eax, dword [ebp - 0x44]
mov dword [esp], 0x200
lea eax, [eax + eax - 2]
and eax, 0xfffffffc
add ebx, eax
call fcn.005c2f70
lea edx, [eax + 0x200]
mov dword [ebx], eax
cmp byte [0x699ec0], 0
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], 0
mov byte [ebp - 0x7c], 0
je 0x4c3a48
mov edx, dword [0x699ebc]
test edx, edx
je 0x4c3a48
lea eax, [ebp - 0x84]
lea edx, [ebp - 0x54]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0xa4], edx
call fcn.004c2a70
test eax, eax
js 0x4c3f2c
mov eax, dword [0x699ebc]
mov dword [esp], eax
lea eax, [ebp - 0x84]
mov dword [ebp - 0x8c], eax
call fcn.0043b9e0
mov dword [esp + 0x10], eax
mov edi, dword [ebp - 0x98]
lea eax, [ebp - 0x84]
mov dword [esp + 8], str.do_source_file
mov dword [esp + 0xc], edi
mov dword [esp + 4], str._s:_Parsing:__s_as_language__s_n
mov dword [esp], 0
mov dword [ebp - 0x8c], eax
call fcn.0043ce70
lea eax, [ebp - 0x84]
mov dword [ebp - 0x8c], eax
call fcn.004394b0
mov dword [esp], edi
call sub.msvcrt.dll_strlen
mov dword [esp + 8], edi
mov ecx, 0x699d3c
mov dword [esp + 0xc], eax
mov eax, dword [0x699d40]
mov dword [esp], 0
mov dword [esp + 4], eax
lea eax, [ebp - 0x84]
mov dword [ebp - 0x8c], eax
call fcn.00583070
movzx eax, byte [0x699d38]
sub esp, 0x10
mov byte [ebp - 0x9d], al
test al, al
jne 0x4c3bf0
cmp byte [0x699d2c], 0
jne 0x4c3a78
mov eax, dword [ebp - 0x9c]
test eax, eax
je 0x4c3bc0
mov edi, dword [ebp - 0x9c]
mov dword [esp], edi
call sub.msvcrt.dll_strlen
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x8c], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov eax, dword [ebp - 0x80]
mov dword [esp], 0
mov dword [esp + 4], eax
call fcn.00583070
sub esp, 0x10
mov dword [esp + 4], edi
mov eax, dword [ebp - 0x98]
mov dword [esp], eax
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x4c3cd7
mov byte [ebp - 0x9e], 0
mov eax, dword [ebp - 0x84]
call fcn.004c0810
mov dword [esp + 4], 0x6046f7
mov eax, dword [ebp - 0x84]
mov dword [esp], eax
call sub.msvcrt.dll_fopen
mov edi, eax
test eax, eax
je 0x4c3eb2
mov byte [ebp - 0x9d], 1
cmp byte [0x699d38], 0
je 0x4c3a81
mov eax, dword [0x699d20]
mov ecx, dword [eax + 0x18]
mov ebx, dword [eax + 8]
mov esi, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x90], ecx
add eax, 4
mov dword [ebp - 0x94], eax
lea esi, cs:[esi]
nop
cmp dword [ebp - 0x90], ebx
je 0x4c3a19
mov dword [esp + 4], edi
movzx eax, byte [ebx]
mov dword [esp], eax
lea eax, [ebp - 0x84]
mov dword [ebp - 0x8c], eax
call sub.msvcrt.dll_fputc
add ebx, 1
cmp ebx, esi
jne 0x4c39d0
mov eax, dword [ebp - 0x94]
mov ebx, dword [eax]
add eax, 4
mov dword [ebp - 0x94], eax
lea esi, [ebx + 0x200]
cmp dword [ebp - 0x90], ebx
jne 0x4c39d8
lea eax, [ebp - 0x84]
mov dword [ebp - 0x8c], eax
call fcn.004c1440
cmp byte [ebp - 0x9d], 0
jne 0x4c3ad0
mov esi, dword [ebp - 0x84]
jmp 0x4c3b60
mov eax, dword [ebp - 0x98]
mov dword [esp], eax
lea eax, [ebp - 0x54]
mov dword [ebp - 0xa4], eax
lea eax, [ebp - 0x84]
mov dword [ebp - 0x8c], eax
call fcn.0043bd10
mov dword [0x699ebc], eax
jmp 0x4c381d
mov byte [ebp - 0x9e], 0
xor edi, edi
mov dword [esp + 0x14], 0
movzx eax, byte [ebp - 0x94]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x90]
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov eax, dword [ebp - 0xa4]
mov dword [esp], eax
lea eax, [ebp - 0x84]
mov dword [ebp - 0x8c], eax
call fcn.004c1550
cmp byte [ebp - 0x9d], 0
je 0x4c3a37
lea eax, [ebp - 0x84]
mov dword [esp], edi
mov dword [ebp - 0x8c], eax
call sub.msvcrt.dll_fclose
cmp byte [ebp - 0x9e], 0
jne 0x4c3cb8
mov eax, dword [ebp - 0x9c]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov ebx, eax
mov edi, eax
cmp dword [ebp - 0x80], eax
je 0x4c3c80
cmp byte [0x699d38], 0
je 0x4c3d3b
mov edx, dword [ebp - 0x84]
mov dword [esp + 8], 3
mov eax, dword [ebp - 0x9c]
mov dword [esp], edx
mov dword [esp + 4], eax
lea eax, [ebp - 0x84]
mov dword [ebp - 0x8c], eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov esi, dword [ebp - 0x84]
sub esp, 0xc
test eax, eax
je 0x4c3e70
lea esi, cs:[esi]
nop
lea eax, [ebp - 0x7c]
cmp esi, eax
je 0x4c3b6f
mov dword [esp], esi
call fcn.005c2f20
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x4c3ba4
mov ecx, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x34]
lea esi, [ecx + 4]
cmp ebx, esi
jae 0x4c3b9c
lea esi, cs:[esi]
mov eax, dword [ebx]
add ebx, 4
mov dword [esp], eax
call fcn.005c2f20
cmp ebx, esi
jb 0x4c3b88
mov eax, dword [ebp - 0x48]
mov dword [esp], eax
call fcn.005c2f20
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x4c3bb3
mov dword [esp], eax
call fcn.005c2f20
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0x84]
mov dword [esp], 1
mov dword [ebp - 0x8c], eax
call dword [0x5e7ad4]
mov byte [ebp - 0x9e], 0
mov edi, eax
mov byte [ebp - 0x9d], 0
jmp 0x4c3999
movzx ebx, byte [ebp - 0x94]
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], ebx
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x90]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov edi, dword [ebp - 0xa4]
lea eax, [ebp - 0x84]
mov dword [esp], edi
mov dword [ebp - 0x8c], eax
call fcn.004c1550
lea eax, [ebp - 0x84]
mov ecx, ebx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, edi
call fcn.004c0940
mov byte [ebp - 0x9d], al
test al, al
jne 0x4c3dc9
xor edi, edi
cmp byte [0x699d2c], 0
mov byte [ebp - 0x9e], 0
jne 0x4c3999
jmp 0x4c3900
mov esi, dword [ebp - 0x84]
test eax, eax
je 0x4c3b60
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x9c]
mov dword [esp], esi
mov dword [esp + 4], eax
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x4c3b60
jmp 0x4c3b0c
mov eax, dword [ebp - 0x98]
mov dword [esp], eax
lea eax, [ebp - 0x84]
mov dword [ebp - 0x8c], eax
call fcn.00418440
jmp 0x4c3af1
mov eax, 0x3fffffff
sub eax, dword [ebp - 0x80]
cmp eax, 0xa
jbe 0x4c3f20
mov dword [esp + 4], 0xb
mov dword [esp], str..uncrustify
mov ecx, dword [ebp - 0x8c]
call fcn.00585ce0
mov eax, esi
sub esp, 8
test al, al
jne 0x4c3960
mov eax, dword [ebp - 0xa4]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x98]
mov dword [esp], eax
call fcn.004180d0
test eax, eax
jne 0x4c3ef8
mov byte [ebp - 0x9e], 1
jmp 0x4c3967
lea esi, [ebp - 0x64]
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x6c], esi
cmp ebx, 0xf
ja 0x4c3e37
cmp ebx, 1
je 0x4c3e26
test ebx, ebx
jne 0x4c3da6
mov eax, esi
mov dword [ebp - 0x68], edi
lea edx, [ebp - 0x6c]
mov byte [eax + edi], 0
lea eax, [ebp - 0x84]
mov dword [ebp - 0x8c], eax
call fcn.004c0020
mov ebx, eax
mov eax, dword [ebp - 0x6c]
cmp eax, esi
je 0x4c3d8b
mov dword [esp], eax
call fcn.005c2f20
mov edx, dword [ebp - 0x84]
test bl, bl
je 0x4c3b1f
mov dword [esp], edx
call sub.msvcrt.dll__unlink
jmp 0x4c3a37
mov eax, esi
mov dword [esp + 8], ebx
mov ecx, dword [ebp - 0x9c]
mov dword [esp], eax
mov dword [esp + 4], ecx
call sub.msvcrt.dll_memcpy
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp - 0x6c]
jmp 0x4c3d5f
lea eax, [ebp - 0x84]
mov dword [ebp - 0x8c], eax
call fcn.004c1440
mov eax, dword [ebp - 0x84]
lea ecx, [ebp - 0x7c]
cmp eax, ecx
je 0x4c3def
mov dword [esp], eax
call fcn.005c2f20
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x4c3ba4
mov ecx, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x34]
lea esi, [ecx + 4]
cmp ebx, esi
jae 0x4c3b9c
lea esi, cs:[esi]
mov eax, dword [ebx]
add ebx, 4
mov dword [esp], eax
call fcn.005c2f20
cmp ebx, esi
jb 0x4c3e10
jmp 0x4c3b99
mov eax, dword [ebp - 0x9c]
movzx eax, byte [eax]
mov byte [ebp - 0x64], al
jmp 0x4c3d5d
lea eax, [ebp - 0x88]
mov dword [esp + 4], 0
lea ecx, [ebp - 0x6c]
mov dword [esp], eax
lea eax, [ebp - 0x84]
mov dword [ebp - 0x8c], eax
call fcn.00585e40
mov edx, dword [ebp - 0x88]
mov dword [ebp - 0x6c], eax
sub esp, 8
mov dword [ebp - 0x64], edx
jmp 0x4c3da8
mov eax, dword [ebp - 0x9c]
mov dword [esp + 0xc], esi
mov dword [esp + 8], str.do_source_file
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x84]
mov dword [esp + 4], str._s:_Unable_to_rename__s_to__s_n
mov dword [esp], 1
mov dword [ebp - 0x8c], eax
call fcn.0043ce70
mov dword [esp], 0x4a
call sub.msvcrt.dll_exit
mov ebx, dword [sym.imp.msvcrt.dll__errno]
call ebx
mov esi, dword [eax]
call ebx
mov eax, dword [eax]
mov dword [esp], eax
call sub.msvcrt.dll_strerror
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x84]
mov dword [esp + 8], str.do_source_file
mov dword [esp + 0xc], eax
mov dword [esp + 4], str._s:_Unable_to_create__s:__s___d__n
mov dword [esp], 1
call fcn.0043ce70
jmp 0x4c3ea6
mov eax, dword [ebp - 0x98]
mov dword [esp + 8], str.do_source_file
mov dword [esp + 4], str._s:_Failed_to_create_backup_file_for__s_n
mov dword [esp + 0xc], eax
mov dword [esp], 1
call fcn.0043ce70
jmp 0x4c3ea6
mov dword [esp], 0x6046b3
call fcn.005da300
mov eax, dword [ebp - 0x98]
mov dword [esp + 4], str.Failed_to_load___s__n
mov dword [esp], 1
mov dword [esp + 8], eax
lea eax, [ebp - 0x84]
mov dword [ebp - 0x8c], eax
call fcn.0043ce70
jmp 0x4c3ea6