Function at 0x414c20
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x426396
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x62c
push ebx
push ebp
or ebp, 0xffffffff
push esi
push edi
mov esi, ecx
mov dword [esp + 0x10], ebp
xor ebx, ebx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x644], ebx
mov byte [esp + 0x644], 1
mov dword [esp + 0x1c], ebx
call sub.MFC42.DLL_AfxGetModuleState
mov edi, dword [eax + 4]
mov eax, dword [esi + 0x18]
cmp eax, ebx
mov dword [esp + 0x20], edi
je 0x414c90
lea ecx, [esp + 0x14]
mov byte [esp + 0x644], bl
call fcn.0040e140
mov dword [esp + 0x644], ebp
jmp 0x415312
cmp dword [esi + 0xc], ebx
je 0x414dd5
lea eax, [esp + 0x24]
mov ecx, esi
push eax
call fcn.00414aa0
lea ecx, [esp + 0x18]
lea edx, [esp + 0x24]
push ecx
push edx
mov ecx, 0x42eb60
mov dword [esp + 0x20], ebx
call sub.MFC42.DLL_CMapStringToPtr::Lookup
test eax, eax
jne 0x414dcc
push str.analyze.bad
mov ecx, esi
call fcn.00414a70
push eax
lea eax, [esp + 0x338]
push eax
call sub.ssapi.dll_public:_static_int___cdecl_MSFS::AppendPath_char___char_const___char_const__
add esp, 0xc
lea ecx, [esp + 0x330]
push ecx
call sub.ssapi.dll_public:_static_int___cdecl_MSFS::Exist_char_const__
add esp, 4
test eax, eax
jne 0x414d14
push ebp
push 0xc3
push 0xc2
lea edx, [esp + 0x33c]
push ebx
push edx
call sub.ssapi.dll_public:_static_int___cdecl_MSFS::Create_char_const___int__int__int__int_
add esp, 0x14
jmp 0x414d29
lea eax, [esp + 0x330]
push 0xc3
push eax
call sub.ssapi.dll_public:_static_int___cdecl_MSFS::Open_char_const___int_
add esp, 8
mov edi, eax
cmp edi, ebx
jge 0x414d56
lea ecx, [esp + 0x14]
mov byte [esp + 0x644], bl
call fcn.0040e140
lea ecx, [esp + 0x10]
mov dword [esp + 0x644], ebp
call fcn.0040e140
mov eax, edi
jmp 0x41531d
push 2
push ebx
push edi
call sub.ssapi.dll_public:_static_long_int___cdecl_MSFS::Seek_int__long_int__int_
mov ebp, eax
add esp, 0xc
cmp ebp, ebx
jl 0x414d7c
lea ecx, [esi + 0x1b4]
push ecx
push edi
call sub.ssapi.dll_public:_static_int___cdecl_MSFS::LineWrite_int__char_const__
add esp, 8
test eax, eax
jge 0x414da7
lea ecx, [esp + 0x14]
mov byte [esp + 0x644], bl
call fcn.0040e140
lea ecx, [esp + 0x10]
mov dword [esp + 0x644], 0xffffffff
call fcn.0040e140
mov eax, ebp
jmp 0x41531d
push edi
call sub.ssapi.dll_public:_static_int___cdecl_MSFS::Close_int_
mov edi, dword [esp + 0x1c]
add esp, 4
lea edx, [esp + 0x24]
mov ecx, 0x42eb60
push edx
call sub.MFC42.DLL_CMapStringToPtr::operator__
mov dword [eax], edi
mov edi, dword [esp + 0x20]
or ebp, 0xffffffff
test byte [edi + 0x3e4], 8
jmp 0x414e00
test byte [edi + 0x3e4], 1
jne 0x414dfa
lea ecx, [esp + 0x14]
mov byte [esp + 0x644], bl
call fcn.0040e140
mov dword [esp + 0x644], ebp
jmp 0x415312
cmp dword [esi + 0x3d8], ebx
jne 0x414e1e
lea ecx, [esp + 0x14]
mov byte [esp + 0x644], bl
call fcn.0040e140
mov dword [esp + 0x644], ebp
jmp 0x415312
cmp dword [esi + 8], ebx
je 0x414e2a
mov ecx, esi
call fcn.004157f0
cmp dword [esp + 0x64c], ebx
je 0x41515a
lea eax, [esp + 0x24]
mov ecx, esi
push eax
call fcn.00414aa0
lea ecx, [esp + 0x24]
push ecx
push 0xffffccc1
call sym.analyze.exe_int___cdecl_LogMessage_int_
add esp, 8
lea edx, [esp + 0x128]
mov ecx, esi
push edx
call fcn.00414ba0
lea ebp, [esi + 0x1b4]
push ebp
call sub.ssapi.dll_public:_static_int___cdecl_MSFS::Exist_char_const__
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileA]
add esp, 4
test eax, eax
je 0x415014
lea eax, [esp + 0x128]
push eax
call sub.ssapi.dll_public:_static_int___cdecl_MSFS::Exist_char_const__
add esp, 4
test eax, eax
jne 0x414f24
lea ecx, [esp + 0x128]
push ecx
push ebp
call sub.ssapi.dll_public:_static_int___cdecl_MSFS::RenameRO_char_const___char_const__
add esp, 8
test eax, eax
jge 0x414ef8
lea edx, [esp + 0x128]
push 1
push edx
push ebp
call edi
test eax, eax
jne 0x414ef8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
lea ecx, [esp + 0x1c]
push ebx
push ecx
push ebx
push eax
push ebx
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, dword [esp + 0x18]
push ebp
push edx
push 0xffffcd00
push esi
call fcn.00415d70
mov eax, dword [esp + 0x28]
add esp, 0x10
push eax
jmp 0x4150d5
lea ecx, [esp + 0x128]
push 0x81
push ecx
lea ecx, [esp + 0x1c]
call fcn.0040e150
cmp eax, ebx
jge 0x415014
lea edx, [esp + 0x128]
push edx
push eax
jmp 0x41525a
lea eax, [esp + 0x22c]
mov ecx, esi
push eax
call fcn.00414c00
lea ecx, [esp + 0x22c]
push ecx
call sub.ssapi.dll_public:_static_int___cdecl_MSFS::DeleteRO_char_const__
add esp, 4
lea edx, [esp + 0x22c]
lea eax, [esp + 0x24]
push edx
push eax
call sub.ssapi.dll_public:_static_int___cdecl_MSFS::RenameRO_char_const___char_const__
add esp, 8
test eax, eax
jge 0x414fe4
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x24]
lea edx, [esp + 0x434]
push ecx
push edx
mov edi, eax
call sub.ssapi.dll_public:_static_int___cdecl_MSSTR::Copy_char___char_const__
add esp, 8
lea eax, [esp + 0x434]
push str.___
push eax
call sub.ssapi.dll_public:_static_int___cdecl_MSSTR::Append_char___char_const__
add esp, 8
lea ecx, [esp + 0x22c]
lea edx, [esp + 0x434]
push ecx
push edx
call sub.ssapi.dll_public:_static_int___cdecl_MSSTR::Append_char___char_const__
add esp, 8
lea eax, [esp + 0x18]
push ebx
push ebx
push eax
push ebx
push edi
push ebx
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x434]
push ecx
push edx
push 0xffffcd00
push esi
call fcn.00415d70
mov eax, dword [esp + 0x28]
add esp, 0x10
push eax
jmp 0x4150d5
lea ecx, [esp + 0x22c]
push 0x81
push ecx
lea ecx, [esp + 0x1c]
call fcn.0040e150
cmp eax, ebx
jge 0x41500c
lea edx, [esp + 0x22c]
push edx
push eax
jmp 0x41525a
mov dword [esp + 0x1c], 1
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
test eax, eax
je 0x415109
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call fcn.00414b00
lea edx, [esp + 0x128]
mov ecx, esi
push edx
call fcn.00414b50
lea eax, [esp + 0x24]
push eax
call sub.ssapi.dll_public:_static_int___cdecl_MSFS::Exist_char_const__
add esp, 4
test eax, eax
je 0x415109
lea ecx, [esp + 0x128]
push ecx
call sub.ssapi.dll_public:_static_int___cdecl_MSFS::Exist_char_const__
add esp, 4
test eax, eax
jne 0x415109
lea edx, [esp + 0x128]
lea eax, [esp + 0x24]
push edx
push eax
call sub.ssapi.dll_public:_static_int___cdecl_MSFS::RenameRO_char_const___char_const__
add esp, 8
test eax, eax
jge 0x415109
lea ecx, [esp + 0x128]
push 1
lea edx, [esp + 0x28]
push ecx
push edx
call edi
test eax, eax
jne 0x415109
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
lea ecx, [esp + 0x1c]
push ebx
push ecx
push ebx
push eax
push ebx
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x24]
push edx
push eax
push 0xffffcd00
push esi
call fcn.00415d70
mov ecx, dword [esp + 0x28]
add esp, 0x10
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [esp + 0x14]
mov byte [esp + 0x644], bl
call fcn.0040e140
lea ecx, [esp + 0x10]
mov dword [esp + 0x644], 0xffffffff
call fcn.0040e140
mov eax, 0xffff8001
jmp 0x41531d
lea edx, [esp + 0x24]
mov ecx, esi
push edx
call fcn.00414aa0
push 0xc2
lea eax, [esp + 0x28]
push ebx
push eax
lea ecx, [esp + 0x1c]
call fcn.0040e170
mov edi, eax
cmp edi, ebx
jge 0x41517a
lea ecx, [esp + 0x14]
mov byte [esp + 0x644], bl
call fcn.0040e140
lea ecx, [esp + 0x10]
mov dword [esp + 0x644], 0xffffffff
call fcn.0040e140
mov eax, edi
jmp 0x41531d
lea ebp, [esi + 0x1b4]
push 0x81
push ebp
lea ecx, [esp + 0x1c]
call fcn.0040e150
cmp eax, ebx
jge 0x41517a
push ebp
push eax
jmp 0x41525a
mov eax, dword [esp + 0x64c]
mov edx, dword [esi]
push eax
lea ecx, [esp + 0x14]
push 0x1a0
push ecx
mov ecx, esi
call dword [edx + 0x1c]
mov edi, eax
cmp edi, ebx
jge 0x4151b6
lea edx, [esp + 0x24]
push edx
push 0xffffcd0b
push esi
call fcn.00415d70
add esp, 0xc
lea eax, [esp + 0x24]
push eax
jmp 0x415259
mov ecx, dword [esp + 0x64c]
lea edx, [esp + 0x10]
push ecx
push edi
lea eax, [esp + 0x1c]
push edx
push eax
mov ecx, esi
call fcn.00415340
mov edi, eax
cmp edi, ebx
jl 0x415218
cmp dword [esp + 0x64c], ebx
je 0x4152f7
lea eax, [esi + 0x1c]
push 0x34
push eax
push ebx
lea ecx, [esp + 0x1c]
call fcn.0040e2f0
mov edi, eax
cmp edi, ebx
jl 0x415218
lea eax, [esi + 0x50]
push 0x164
push eax
push 0x4844
push 0x34
lea ecx, [esp + 0x20]
call fcn.0040e3f0
mov edi, eax
cmp edi, ebx
jge 0x415232
lea ecx, [esp + 0x24]
push ecx
push 0xffffcd0b
push esi
call fcn.00415d70
add esp, 0xc
lea edx, [esp + 0x24]
push edx
jmp 0x415259
lea ecx, [esp + 0x10]
call fcn.0040e210
mov edi, eax
cmp edi, ebx
jge 0x415290
lea eax, [esp + 0x24]
push eax
push 0xffffcd0b
push esi
call fcn.00415d70
add esp, 0xc
lea ecx, [esp + 0x24]
push ecx
push edi
push esi
call fcn.00415d70
add esp, 0xc
lea ecx, [esp + 0x14]
mov esi, eax
mov byte [esp + 0x644], bl
call fcn.0040e140
lea ecx, [esp + 0x10]
mov dword [esp + 0x644], 0xffffffff
call fcn.0040e140
mov eax, esi
jmp 0x41531d
push ebx
mov ecx, esi
call fcn.00414910
mov eax, dword [esi + 0x3d0]
cmp eax, ebx
je 0x4152a8
mov eax, dword [eax]
cmp eax, ebx
jne 0x4152a2
mov ecx, dword [esi + 0x3e0]
mov dword [esi + 0x3d8], ebx
mov dword [esi + 0x3dc], ebx
mov dword [esi + 0x3d4], ebx
mov dword [esi + 0x3d0], ebx
call sub.MFC42.DLL_CPlex::FreeDataChain
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x3e0], ebx
cmp eax, ebx
je 0x4152e9
lea edx, [esp + 0x22c]
push edx
call sub.ssapi.dll_public:_static_int___cdecl_MSFS::DeleteRO_char_const__
add esp, 4
lea eax, [esp + 0x24]
push eax
push ebp
call sub.ssapi.dll_public:_static_int___cdecl_MSSTR::Copy_char___char_const__
add esp, 8
lea ecx, [esp + 0x14]
mov byte [esp + 0x644], bl
call fcn.0040e140
mov dword [esp + 0x644], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.0040e140
xor eax, eax
mov ecx, dword [esp + 0x63c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x638
ret 4