Function at 0x40e4d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x300
mov eax, dword [0x5d1e24]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x8007
mov dword [ebp - 0x300], eax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
push 0x8000
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push 2
call fcn.00514ef0
add esp, 4
lea ecx, [ebp - 0x2e1]
call fcn.0040ddc0
push 0
push 0
push str.proc_opt_ui
call fcn.0040d280
push 0x208
lea eax, [ebp - 0x270]
push 0
push eax
call fcn.0054f9f0
add esp, 0x18
lea eax, [ebp - 0x270]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x270]
push eax
call edi
mov esi, 2
nop
lea eax, [ebp - 0x270]
push eax
call edi
sub esi, 1
jne 0x40e580
push str.UtilsDumpUper.exe
lea eax, [ebp - 0x270]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x270]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40e5e9
lea ecx, [ebp - 0x270]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e5c0
sub ecx, edx
lea eax, [ebp - 0x270]
sar ecx, 1
push ecx
push eax
push 0x104
push 0x5dbb28
call fcn.0055c1d5
add esp, 0x10
push 0x30
lea eax, [ebp - 0x2ac]
push 0
push eax
call fcn.0054f9f0
add esp, 0xc
lea ecx, [ebp - 0x2ac]
call fcn.0044c7d0
lea eax, [ebp - 0x274]
mov dword [ebp - 0x274], 0
push 2
push eax
call fcn.0051b270
add esp, 8
lea ecx, [ebp - 0x274]
push 0x14
push str.Logproc_opt_ui.log
call fcn.0040cae0
push 0x5908c8
push 0x6400000
push 0
push 0
push dword [ebp - 0x274]
call fcn.0046b7c0
push str.http:__s.ludashi.com_url3_pidpidmidmidmid2mid2appverappvermodvermodvertypetypeactionactionappappex_ary_ex_flag_value_added
push str.proc_opt
push 2
call fcn.0040d1d0
mov ecx, eax
call fcn.00517da0
push 0
mov dword [ebp - 0x278], 0x80004005
call dword [sym.imp.ole32.dll_CoInitialize]
mov esi, eax
mov dword [ebp - 0x2e0], esi
test esi, esi
jns 0x40e758
call fcn.0046b6d0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x40ee63
push 0x53
push str.d:jenkins.jenkinsworkspacegroup_cleanproc_optproc_optproc_opt_ui_srcmian.cc
lea ecx, [ebp - 0x2c4]
mov dword [ebp - 0x2b4], eax
mov dword [ebp - 0x2b0], 0xf
mov byte [ebp - 0x2c4], al
call fcn.00409600
push 3
push 0x590d7c
lea ecx, [ebp - 0x2dc]
mov dword [ebp - 0x2cc], 0
mov dword [ebp - 0x2c8], 0xf
mov byte [ebp - 0x2dc], 0
call fcn.00409600
call fcn.0046b6d0
mov edi, eax
lea ecx, [ebp - 0x100]
push 0x45
lea eax, [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x2dc]
push eax
call fcn.00404630
mov esi, eax
push str.CoInitialize_fail
push esi
call fcn.00405780
mov eax, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x100]
call fcn.00405a10
lea ecx, [ebp - 0x2dc]
call fcn.00405000
lea ecx, [ebp - 0x2c4]
call fcn.00405000
jmp 0x40ee5d
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_DefWindowProcW]
lea eax, [ebp - 0x27c]
mov dword [ebp - 0x27c], 8
push eax
mov dword [ebp - 0x278], 4
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
push ebx
mov ecx, 0x5dc148
call fcn.0051c850
mov dword [ebp - 0x278], eax
mov dword [0x5dbb20], ebx
test eax, eax
jns 0x40e856
call fcn.0046b6d0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x40ee63
push 0x53
push str.d:jenkins.jenkinsworkspacegroup_cleanproc_optproc_optproc_opt_ui_srcmian.cc
lea ecx, [ebp - 0x2c4]
mov dword [ebp - 0x2b4], eax
mov dword [ebp - 0x2b0], 0xf
mov byte [ebp - 0x2c4], al
call fcn.00409600
push 3
push 0x590d7c
lea ecx, [ebp - 0x2dc]
mov dword [ebp - 0x2cc], 0
mov dword [ebp - 0x2c8], 0xf
mov byte [ebp - 0x2dc], 0
call fcn.00409600
call fcn.0046b6d0
mov edi, eax
lea ecx, [ebp - 0x100]
push 0x4d
lea eax, [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x2dc]
push eax
call fcn.00404630
push str.AppModuleEx_init_fail
mov esi, eax
push esi
call fcn.00405780
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
jmp 0x40e732
push str....._netul.dll
call fcn.0051ef40
add esp, 4
mov esi, eax
call fcn.0046b6d0
push 1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
mov ecx, eax
call edx
movzx eax, al
test esi, esi
jne 0x40e906
sub eax, 1
jne 0x40ee5d
push 0x53
push str.d:jenkins.jenkinsworkspacegroup_cleanproc_optproc_optproc_opt_ui_srcmian.cc
lea ecx, [ebp - 0x2c4]
mov dword [ebp - 0x2b4], eax
mov dword [ebp - 0x2b0], 0xf
mov byte [ebp - 0x2c4], al
call fcn.00409600
push 3
push 0x590d7c
lea ecx, [ebp - 0x2dc]
mov dword [ebp - 0x2cc], esi
mov dword [ebp - 0x2c8], 0xf
mov byte [ebp - 0x2dc], 0
call fcn.00409600
call fcn.0046b6d0
mov edi, eax
lea ecx, [ebp - 0x100]
push 0x51
lea eax, [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x2dc]
push eax
call fcn.00404630
push str.InitNet_failed
jmp 0x40e83e
sub eax, 1
jne 0x40eba0
push 0x53
push str.d:jenkins.jenkinsworkspacegroup_cleanproc_optproc_optproc_opt_ui_srcmian.cc
lea ecx, [ebp - 0x2dc]
mov dword [ebp - 0x2cc], eax
mov dword [ebp - 0x2c8], 0xf
mov byte [ebp - 0x2dc], al
call fcn.00409600
push 3
push 0x590d7c
lea ecx, [ebp - 0x2c4]
mov dword [ebp - 0x2b4], 0
mov dword [ebp - 0x2b0], 0xf
mov byte [ebp - 0x2c4], 0
call fcn.00409600
call fcn.0046b6d0
push 1
push 2
lea ecx, [ebp - 0x100]
mov ebx, eax
call fcn.00404150
push 0xffffffffffffffff
push 0x5909c0
lea ecx, [ebp - 0x2dc]
call fcn.0040ace0
push 0xffffffffffffffff
push 0x5909c4
lea ecx, [ebp - 0x2dc]
mov edi, eax
call fcn.0040ace0
push 0x64
mov esi, eax
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.0054f9f0
add esp, 0xc
cmp esi, 0xffffffff
je 0x40eaa0
lea eax, [esi - 1]
cmp edi, eax
jae 0x40eaa0
mov eax, dword [ebp - 0x2cc]
lea edx, [edi + 1]
mov dword [ebp - 0x2ec], 0
mov dword [ebp - 0x2e8], 0xf
mov byte [ebp - 0x2fc], 0
cmp eax, edx
jb 0x40eed4
sub esi, edi
sub eax, edx
lea ecx, [esi - 1]
cmp eax, ecx
cmovb ecx, eax
cmp dword [ebp - 0x2c8], 0x10
lea eax, [ebp - 0x2dc]
cmovae eax, dword [ebp - 0x2dc]
push ecx
add eax, edx
lea ecx, [ebp - 0x2fc]
push eax
call fcn.00409600
cmp dword [ebp - 0x2e8], 0x10
lea eax, [ebp - 0x2fc]
cmovae eax, dword [ebp - 0x2fc]
push eax
push 0x54
lea eax, [ebp - 0x68]
push str.__4d___s_
push eax
call fcn.00403c50
mov edx, dword [ebp - 0x2e8]
add esp, 0x10
cmp edx, 0x10
jb 0x40ea83
mov ecx, dword [ebp - 0x2fc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40ea79
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40eed9
push edx
push ecx
call fcn.0046c7d5
add esp, 8
mov dword [ebp - 0x2ec], 0
mov dword [ebp - 0x2e8], 0xf
mov byte [ebp - 0x2fc], 0
jmp 0x40eab3
push 0x54
lea eax, [ebp - 0x68]
push str.__4d_
push eax
call fcn.00403c50
add esp, 0xc
cmp dword [ebp - 0x2b0], 0x10
lea eax, [ebp - 0x2c4]
cmovae eax, dword [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x100]
push eax
call fcn.00405780
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x100]
push eax
call fcn.00405780
lea eax, [ebp - 0x100]
push str.Start_Run
push eax
call fcn.00405780
mov eax, dword [ebx]
lea ecx, [ebp - 0x100]
add esp, 0x18
push ecx
mov ecx, ebx
call dword [eax + 0x1c]
lea ecx, [ebp - 0x100]
call fcn.00405a10
mov edx, dword [ebp - 0x2b0]
cmp edx, 0x10
jb 0x40eb4b
mov ecx, dword [ebp - 0x2c4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40eb41
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40eede
push edx
push ecx
call fcn.0046c7d5
add esp, 8
mov edx, dword [ebp - 0x2c8]
mov dword [ebp - 0x2b4], 0
mov dword [ebp - 0x2b0], 0xf
mov byte [ebp - 0x2c4], 0
cmp edx, 0x10
jb 0x40eba0
mov ecx, dword [ebp - 0x2dc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40eb96
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40eede
push edx
push ecx
call fcn.0046c7d5
add esp, 8
push dword [ebp - 0x300]
call fcn.0040d490
call fcn.0046b6d0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x40ee58
push 0x53
push str.d:jenkins.jenkinsworkspacegroup_cleanproc_optproc_optproc_opt_ui_srcmian.cc
lea ecx, [ebp - 0x2fc]
mov dword [ebp - 0x2ec], eax
mov dword [ebp - 0x2e8], 0xf
mov byte [ebp - 0x2fc], al
call fcn.00409600
push 3
push 0x590d7c
lea ecx, [ebp - 0x2c4]
mov dword [ebp - 0x2b4], 0
mov dword [ebp - 0x2b0], 0xf
mov byte [ebp - 0x2c4], 0
call fcn.00409600
call fcn.0046b6d0
push 1
push 2
lea ecx, [ebp - 0x100]
mov ebx, eax
call fcn.00404150
push 0xffffffffffffffff
push 0x5909c0
lea ecx, [ebp - 0x2fc]
call fcn.0040ace0
push 0xffffffffffffffff
push 0x5909c4
lea ecx, [ebp - 0x2fc]
mov edi, eax
call fcn.0040ace0
push 0x64
mov esi, eax
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.0054f9f0
add esp, 0xc
cmp esi, 0xffffffff
je 0x40ed58
lea eax, [esi - 1]
cmp edi, eax
jae 0x40ed58
mov eax, dword [ebp - 0x2ec]
lea edx, [edi + 1]
mov dword [ebp - 0x2cc], 0
mov dword [ebp - 0x2c8], 0xf
mov byte [ebp - 0x2dc], 0
cmp eax, edx
jb 0x40eee3
sub esi, edi
sub eax, edx
lea ecx, [esi - 1]
cmp eax, ecx
cmovb ecx, eax
cmp dword [ebp - 0x2e8], 0x10
lea eax, [ebp - 0x2fc]
cmovae eax, dword [ebp - 0x2fc]
push ecx
add eax, edx
lea ecx, [ebp - 0x2dc]
push eax
call fcn.00409600
cmp dword [ebp - 0x2c8], 0x10
lea eax, [ebp - 0x2dc]
cmovae eax, dword [ebp - 0x2dc]
push eax
push 0x56
lea eax, [ebp - 0x68]
push str.__4d___s_
push eax
call fcn.00403c50
mov edx, dword [ebp - 0x2c8]
add esp, 0x10
cmp edx, 0x10
jb 0x40ed3b
mov ecx, dword [ebp - 0x2dc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40ed31
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40eee8
push edx
push ecx
call fcn.0046c7d5
add esp, 8
mov dword [ebp - 0x2cc], 0
mov dword [ebp - 0x2c8], 0xf
mov byte [ebp - 0x2dc], 0
jmp 0x40ed6b
push 0x56
lea eax, [ebp - 0x68]
push str.__4d_
push eax
call fcn.00403c50
add esp, 0xc
cmp dword [ebp - 0x2b0], 0x10
lea eax, [ebp - 0x2c4]
cmovae eax, dword [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x100]
push eax
call fcn.00405780
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x100]
push eax
call fcn.00405780
lea eax, [ebp - 0x100]
push str.End_Run
push eax
call fcn.00405780
mov eax, dword [ebx]
lea ecx, [ebp - 0x100]
add esp, 0x18
push ecx
mov ecx, ebx
call dword [eax + 0x1c]
lea ecx, [ebp - 0x100]
call fcn.00405a10
mov edx, dword [ebp - 0x2b0]
cmp edx, 0x10
jb 0x40ee03
mov ecx, dword [ebp - 0x2c4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40edf9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40eeed
push edx
push ecx
call fcn.0046c7d5
add esp, 8
mov edx, dword [ebp - 0x2e8]
mov dword [ebp - 0x2b4], 0
mov dword [ebp - 0x2b0], 0xf
mov byte [ebp - 0x2c4], 0
cmp edx, 0x10
jb 0x40ee58
mov ecx, dword [ebp - 0x2fc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40ee4e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40eeed
push edx
push ecx
call fcn.0046c7d5
add esp, 8
call fcn.0051f320
mov esi, dword [ebp - 0x2e0]
call fcn.0040d1d0
mov ecx, eax
call fcn.00517e00
call fcn.0046bef0
cmp dword [ebp - 0x278], 0
jl 0x40ee87
mov ecx, 0x5dc148
call fcn.0051de30
pop edi
test esi, esi
pop esi
pop ebx
js 0x40ee94
call dword [sym.imp.ole32.dll_CoUninitialize]
call fcn.005152e0
mov edx, dword [ebp - 0x274]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40eeb7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x2ac]
call fcn.0044f730
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0046ca7d
mov esp, ebp
pop ebp
ret 0x10
call fcn.00408ed0
call fcn.0055306a
call fcn.0055306a
call fcn.00408ed0
call fcn.0055306a
call fcn.0055306a
int3