Function at 0x407980
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4e8
mov eax, dword [0x4600a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x449]
push ebx
push esi
push edi
mov dword [ebp - 0x450], eax
call fcn.00403f00
push 0
push 0
push str.ldsmain
call fcn.00403cf0
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.00424b80
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x414]
add esp, 0x18
push 0x104
push eax
push 0
call ebx
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x414]
push eax
call edi
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x414]
push 0x449620
push eax
call esi
push str.ludashi.log
lea eax, [ebp - 0x414]
push eax
call esi
push 0x4492b8
push 0x6400000
push 0
push 1
lea eax, [ebp - 0x414]
push eax
call fcn.00411860
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00424b80
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
call ebx
lea eax, [ebp - 0x20c]
push eax
call edi
push str.ComputerZ_CN.dll
lea eax, [ebp - 0x20c]
push eax
call esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x407b67
call fcn.00411770
mov ecx, eax
push 2
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x407e40
push 0x60
push str.d:jenkins.jenkinsworkspacemaster_lucomputerz_cncompuerz_cnludashilds_carrier_srcmain.cc
lea ecx, [ebp - 0x448]
mov dword [ebp - 0x438], eax
mov dword [ebp - 0x434], 0xf
mov byte [ebp - 0x448], al
call fcn.00405da0
push 3
push 0x4496cc
lea ecx, [ebp - 0x430]
mov dword [ebp - 0x420], 0
mov dword [ebp - 0x41c], 0xf
mov byte [ebp - 0x430], 0
call fcn.00405da0
call fcn.00411770
mov edi, eax
lea ecx, [ebp - 0x4e8]
push 0x23
lea eax, [ebp - 0x448]
push eax
lea eax, [ebp - 0x430]
push eax
call fcn.00401dd0
mov esi, eax
push str.ComputerZ_CN.dll_not_exists
push esi
call fcn.00402f60
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x4e8]
call fcn.004031c0
lea ecx, [ebp - 0x430]
call fcn.004027d0
lea ecx, [ebp - 0x448]
call fcn.004027d0
call fcn.00411ef0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412c4d
mov esp, ebp
pop ebp
ret 0x10
lea eax, [ebp - 0x20c]
push eax
call fcn.00408900
add esp, 4
test eax, eax
jne 0x407c64
call fcn.00411770
mov ecx, eax
push 2
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x407e40
push 0x60
push str.d:jenkins.jenkinsworkspacemaster_lucomputerz_cncompuerz_cnludashilds_carrier_srcmain.cc
lea ecx, [ebp - 0x430]
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x41c], 0xf
mov byte [ebp - 0x430], al
call fcn.00405da0
push 3
push 0x4496cc
lea ecx, [ebp - 0x448]
mov dword [ebp - 0x438], 0
mov dword [ebp - 0x434], 0xf
mov byte [ebp - 0x448], 0
call fcn.00405da0
call fcn.00411770
mov edi, eax
lea ecx, [ebp - 0x4e8]
push 0x28
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x448]
push eax
call fcn.00401dd0
mov esi, eax
push str.Check_sign_failed
push esi
call fcn.00402f60
add esp, 8
mov edx, dword [edi]
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x4e8]
call fcn.004031c0
lea ecx, [ebp - 0x448]
call fcn.004027d0
lea ecx, [ebp - 0x430]
call fcn.004027d0
call fcn.00411ef0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412c4d
mov esp, ebp
pop ebp
ret 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
mov dword [ebp - 0x418], ebx
test ebx, ebx
jne 0x407d3e
call fcn.00411770
mov ecx, eax
push 2
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x407e40
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x60
push str.d:jenkins.jenkinsworkspacemaster_lucomputerz_cncompuerz_cnludashilds_carrier_srcmain.cc
lea ecx, [ebp - 0x430]
mov dword [ebp - 0x420], 0
mov ebx, eax
mov dword [ebp - 0x41c], 0xf
mov byte [ebp - 0x430], 0
call fcn.00405da0
push 3
push 0x4496cc
lea ecx, [ebp - 0x448]
mov dword [ebp - 0x438], 0
mov dword [ebp - 0x434], 0xf
mov byte [ebp - 0x448], 0
call fcn.00405da0
call fcn.00411770
mov edi, eax
lea ecx, [ebp - 0x4e8]
push 0x2e
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x448]
push eax
call fcn.00401dd0
mov esi, eax
push str.Load_ComputerZ_CN.dll_failed:
push esi
call fcn.00402f60
add esp, 8
mov ecx, esi
push ebx
call fcn.00402dc0
jmp 0x407c21
push str.LudashiRun
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x407e5a
call fcn.00411770
mov ecx, eax
push 2
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x407e39
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x60
push str.d:jenkins.jenkinsworkspacemaster_lucomputerz_cncompuerz_cnludashilds_carrier_srcmain.cc
lea ecx, [ebp - 0x430]
mov dword [ebp - 0x420], 0
mov ebx, eax
mov dword [ebp - 0x41c], 0xf
mov byte [ebp - 0x430], 0
call fcn.00405da0
push 3
push 0x4496cc
lea ecx, [ebp - 0x448]
mov dword [ebp - 0x438], 0
mov dword [ebp - 0x434], 0xf
mov byte [ebp - 0x448], 0
call fcn.00405da0
call fcn.00411770
mov edi, eax
lea ecx, [ebp - 0x4e8]
push 0x35
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x448]
push eax
call fcn.00401dd0
mov esi, eax
push str.GetProc_failed:
push esi
call fcn.00402f60
add esp, 8
mov ecx, esi
push ebx
call fcn.00402dc0
mov edx, dword [edi]
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x4e8]
call fcn.004031c0
lea ecx, [ebp - 0x448]
call fcn.004027d0
lea ecx, [ebp - 0x430]
call fcn.004027d0
mov ebx, dword [ebp - 0x418]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call fcn.00411ef0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412c4d
mov esp, ebp
pop ebp
ret 0x10
push dword [ebp - 0x450]
call eax
mov dword [ebp - 0x418], eax
call fcn.00411770
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x407f41
push 0x60
push str.d:jenkins.jenkinsworkspacemaster_lucomputerz_cncompuerz_cnludashilds_carrier_srcmain.cc
lea ecx, [ebp - 0x430]
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x41c], 0xf
mov byte [ebp - 0x430], al
call fcn.00405da0
push 3
push 0x449740
lea ecx, [ebp - 0x448]
mov dword [ebp - 0x438], 0
mov dword [ebp - 0x434], 0xf
mov byte [ebp - 0x448], 0
call fcn.00405da0
call fcn.00411770
mov edi, eax
lea ecx, [ebp - 0x4e8]
push 0x3a
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x448]
push eax
call fcn.00401dd0
mov esi, eax
push str.Ludashi_run_end:
push esi
call fcn.00402f60
add esp, 8
mov ecx, esi
push dword [ebp - 0x418]
call fcn.00402c20
mov edx, dword [edi]
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x4e8]
call fcn.004031c0
lea ecx, [ebp - 0x448]
call fcn.004027d0
lea ecx, [ebp - 0x430]
call fcn.004027d0
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x418]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00412c4d
mov esp, ebp
pop ebp
ret 0x10