Function at 0x40ba70
Capabilities:
Accept command line arguments
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4e8
mov eax, dword [0x4e6210]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea ecx, [ebp - 0x4b1]
call fcn.004081a0
push 0
push 0
push 0x4b8d54
call fcn.00407c20
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.0047af10
add esp, 0x18
lea eax, [ebp - 0x414]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x414]
push eax
call edi
mov esi, 2
nop dword [eax + eax]
lea eax, [ebp - 0x414]
push eax
call edi
sub esi, 1
jne 0x40baf0
push str.UtilsDumpUper.exe
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40bb59
lea ecx, [ebp - 0x414]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40bb30
sub ecx, edx
lea eax, [ebp - 0x414]
sar ecx, 1
push ecx
push eax
push 0x104
push 0x4ebf18
call fcn.00480f17
add esp, 0x10
lea eax, [ebp - 0x4d0]
push eax
call fcn.0042faf0
add esp, 4
mov ecx, eax
push 0xf
push str.dll_repair.log
call fcn.004042c0
cmp dword [eax + 0x14], 8
jb 0x40bb7e
mov eax, dword [eax]
push 0x4b8798
push 0x6400000
push 1
push 0
push eax
call fcn.00439d40
mov edx, dword [ebp - 0x4bc]
cmp edx, 8
jb 0x40bbd2
mov ecx, dword [ebp - 0x4d0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40bbc8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c65c
push edx
push ecx
call fcn.00436532
add esp, 8
push 2
call fcn.0045f760
add esp, 4
call fcn.0042f850
call fcn.0042f610
call fcn.00403c80
call fcn.004395b0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x40bd41
push 0x54
push str.d:jenkins.jenkinsworkspacepay_groupdll_repairdll_repairdll_repair_srcmain.cc
lea ecx, [ebp - 0x4b0]
mov dword [ebp - 0x4a0], eax
mov dword [ebp - 0x49c], 0xf
mov byte [ebp - 0x4b0], al
call fcn.00409ef0
push 3
push 0x4b8930
lea ecx, [ebp - 0x42c]
mov dword [ebp - 0x41c], 0
mov dword [ebp - 0x418], 0xf
mov byte [ebp - 0x42c], 0
call fcn.00409ef0
call fcn.004395b0
mov edi, eax
lea ecx, [ebp - 0x9c]
push 0x71
lea eax, [ebp - 0x4b0]
push eax
lea eax, [ebp - 0x42c]
push eax
call fcn.004054a0
mov esi, eax
push str.cmdline:
push esi
call fcn.004063d0
test ebx, ebx
mov ecx, 0x4b89dc
cmovne ecx, ebx
push ecx
push esi
call fcn.00404760
mov eax, dword [edi]
add esp, 0x10
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x9c]
call fcn.00406630
mov edx, dword [ebp - 0x418]
cmp edx, 0x10
jb 0x40bcec
mov ecx, dword [ebp - 0x42c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40bce2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c661
push edx
push ecx
call fcn.00436532
add esp, 8
mov edx, dword [ebp - 0x49c]
mov dword [ebp - 0x41c], 0
mov dword [ebp - 0x418], 0xf
mov byte [ebp - 0x42c], 0
cmp edx, 0x10
jb 0x40bd41
mov ecx, dword [ebp - 0x4b0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40bd37
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c661
push edx
push ecx
call fcn.00436532
add esp, 8
mov dword [ebp - 0x4b8], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.0042ee80
push 0x208
mov esi, eax
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0047af10
push 0x104
lea eax, [ebp - 0x20c]
push eax
push esi
call fcn.0042ef20
lea eax, [ebp - 0x20c]
push eax
call fcn.0045f3f0
add esp, 0x20
test eax, eax
jne 0x40be66
call fcn.004395b0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x40c62f
push 0x54
push str.d:jenkins.jenkinsworkspacepay_groupdll_repairdll_repairdll_repair_srcmain.cc
lea ecx, [ebp - 0x4b0]
mov dword [ebp - 0x4a0], eax
mov dword [ebp - 0x49c], 0xf
mov byte [ebp - 0x4b0], al
call fcn.00409ef0
push 3
push 0x4b8930
lea ecx, [ebp - 0x42c]
mov dword [ebp - 0x41c], 0
mov dword [ebp - 0x418], 0xf
mov byte [ebp - 0x42c], 0
call fcn.00409ef0
call fcn.004395b0
mov edi, eax
lea ecx, [ebp - 0x9c]
push 0x75
lea eax, [ebp - 0x4b0]
push eax
lea eax, [ebp - 0x42c]
push eax
call fcn.004054a0
mov esi, eax
push str.parent_sign_check_not_pass
push esi
call fcn.004063d0
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x9c]
call fcn.00406630
lea ecx, [ebp - 0x42c]
call fcn.00405e10
lea ecx, [ebp - 0x4b0]
call fcn.00405e10
jmp 0x40c62f
push 0x30
lea eax, [ebp - 0x498]
push 0
push eax
call fcn.0047af10
add esp, 0xc
lea ecx, [ebp - 0x498]
call fcn.0043dbb0
mov ecx, ebx
mov dword [ebp - 0x41c], 0
xor eax, eax
mov dword [ebp - 0x418], 7
mov word [ebp - 0x42c], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40bea6
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x42c]
call fcn.00404450
lea eax, [ebp - 0x42c]
push eax
lea ecx, [ebp - 0x498]
call fcn.0043e300
mov edx, dword [ebp - 0x418]
test eax, eax
sete bl
cmp edx, 8
jb 0x40bf19
mov ecx, dword [ebp - 0x42c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40bf0f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c666
push edx
push ecx
call fcn.00436532
add esp, 8
test bl, bl
je 0x40bfbe
call fcn.004395b0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x40c1bc
push 0x54
push str.d:jenkins.jenkinsworkspacepay_groupdll_repairdll_repairdll_repair_srcmain.cc
lea ecx, [ebp - 0x4b0]
mov dword [ebp - 0x4a0], eax
mov dword [ebp - 0x49c], 0xf
mov byte [ebp - 0x4b0], al
call fcn.00409ef0
push 3
push 0x4b8930
lea ecx, [ebp - 0x42c]
mov dword [ebp - 0x41c], 0
mov dword [ebp - 0x418], 0xf
mov byte [ebp - 0x42c], 0
call fcn.00409ef0
call fcn.004395b0
mov edi, eax
lea ecx, [ebp - 0x9c]
push 0x7d
lea eax, [ebp - 0x4b0]
push eax
lea eax, [ebp - 0x42c]
push eax
call fcn.004054a0
push str.not_a_cmdline
jmp 0x40c188
mov ecx, dword [0x4ec54c]
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ecx, ecx
jne 0x40c020
push 0x4e60c8
call edi
cmp dword [0x4ec54c], 0
jne 0x40c013
push 4
call fcn.00436502
add esp, 4
test eax, eax
je 0x40c001
mov ecx, eax
mov dword [eax], 0
call fcn.0043b0c0
jmp 0x40c003
xor eax, eax
xor edx, edx
lea ecx, [ebp - 0x430]
lock or dword [ecx], edx
mov dword [0x4ec54c], eax
push 0x4e60c8
call ebx
mov ecx, dword [0x4ec54c]
push 0
push 0x4b8d54
push 2
call fcn.0043b140
test eax, eax
jne 0x40c0d6
call fcn.004395b0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x40c1bc
push 0x54
push str.d:jenkins.jenkinsworkspacepay_groupdll_repairdll_repairdll_repair_srcmain.cc
lea ecx, [ebp - 0x4b0]
mov dword [ebp - 0x4a0], eax
mov dword [ebp - 0x49c], 0xf
mov byte [ebp - 0x4b0], al
call fcn.00409ef0
push 3
push 0x4b8930
lea ecx, [ebp - 0x42c]
mov dword [ebp - 0x41c], 0
mov dword [ebp - 0x418], 0xf
mov byte [ebp - 0x42c], 0
call fcn.00409ef0
call fcn.004395b0
mov edi, eax
lea ecx, [ebp - 0x9c]
push 0x82
lea eax, [ebp - 0x4b0]
push eax
lea eax, [ebp - 0x42c]
push eax
call fcn.004054a0
push str.stat_init_failed
jmp 0x40c188
lea eax, [ebp - 0x498]
push eax
call fcn.00406c70
add esp, 4
test al, al
je 0x40c1cc
call fcn.004395b0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x40c1bc
push 0x54
push str.d:jenkins.jenkinsworkspacepay_groupdll_repairdll_repairdll_repair_srcmain.cc
lea ecx, [ebp - 0x4b0]
mov dword [ebp - 0x4a0], eax
mov dword [ebp - 0x49c], 0xf
mov byte [ebp - 0x4b0], al
call fcn.00409ef0
push 3
push 0x4b8930
lea ecx, [ebp - 0x42c]
mov dword [ebp - 0x41c], 0
mov dword [ebp - 0x418], 0xf
mov byte [ebp - 0x42c], 0
call fcn.00409ef0
call fcn.004395b0
mov edi, eax
lea ecx, [ebp - 0x9c]
push 0x87
lea eax, [ebp - 0x4b0]
push eax
lea eax, [ebp - 0x42c]
push eax
call fcn.004054a0
push str.popularize
mov esi, eax
push esi
call fcn.004063d0
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x9c]
call fcn.00406630
lea ecx, [ebp - 0x42c]
call fcn.00405e10
lea ecx, [ebp - 0x4b0]
call fcn.00405e10
lea ecx, [ebp - 0x498]
call fcn.0043dc10
jmp 0x40c62f
lea eax, [ebp - 0x4b8]
push eax
call fcn.00407e30
add esp, 4
test al, al
je 0x40c39a
push 0x4b8748
push str.dll_repair_main_wnd_class_name
push 0
push 0
call dword [sym.imp.USER32.dll_FindWindowExW]
mov ebx, eax
test ebx, ebx
je 0x40c613
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edx, eax
mov dword [ebp - 0x41c], 0
mov ecx, edx
mov dword [ebp - 0x418], 7
xor eax, eax
mov word [ebp - 0x42c], ax
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c230
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x42c]
call fcn.00404450
call fcn.004395b0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x40c33d
push 0x54
push str.d:jenkins.jenkinsworkspacepay_groupdll_repairdll_repairdll_repair_srcmain.cc
lea ecx, [ebp - 0x4d0]
mov dword [ebp - 0x4c0], eax
mov dword [ebp - 0x4bc], 0xf
mov byte [ebp - 0x4d0], al
call fcn.00409ef0
push 3
push 0x4b8930
lea ecx, [ebp - 0x4e8]
mov dword [ebp - 0x4d8], 0
mov dword [ebp - 0x4d4], 0xf
mov byte [ebp - 0x4e8], 0
call fcn.00409ef0
call fcn.004395b0
mov edi, eax
lea ecx, [ebp - 0x9c]
push 0x29
lea eax, [ebp - 0x4d0]
push eax
lea eax, [ebp - 0x4e8]
push eax
call fcn.004054a0
mov esi, eax
push str.dispatch_cmd_line:
push esi
call fcn.00404760
cmp dword [ebp - 0x418], 8
lea ecx, [ebp - 0x42c]
mov eax, 0x4b89dc
cmovae ecx, dword [ebp - 0x42c]
test ecx, ecx
cmovne eax, ecx
push eax
push esi
call fcn.00404760
mov eax, dword [edi]
add esp, 0x10
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x9c]
call fcn.00406630
lea ecx, [ebp - 0x4e8]
call fcn.00405e10
lea ecx, [ebp - 0x4d0]
call fcn.00405e10
mov eax, dword [ebp - 0x41c]
add eax, eax
mov dword [ebp - 0x4a4], 0
cmp dword [ebp - 0x418], 8
push 0
mov dword [ebp - 0x4a0], eax
lea eax, [ebp - 0x42c]
cmovae eax, dword [ebp - 0x42c]
push 0x1388
push 1
mov dword [ebp - 0x49c], eax
lea eax, [ebp - 0x4a4]
push eax
push 0
push 0x4a
push ebx
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
lea ecx, [ebp - 0x42c]
call fcn.00403a80
jmp 0x40c613
lea eax, [ebp - 0x4d0]
push eax
call fcn.0042ea90
mov esi, eax
add esp, 4
cmp dword [esi + 0x14], 8
jb 0x40c3b3
mov esi, dword [esi]
mov ecx, dword [0x4ec54c]
test ecx, ecx
jne 0x40c409
push 0x4e60c8
call edi
cmp dword [0x4ec54c], 0
jne 0x40c3fc
push 4
call fcn.00436502
add esp, 4
test eax, eax
je 0x40c3ea
mov ecx, eax
mov dword [eax], 0
call fcn.0043b0c0
jmp 0x40c3ec
xor eax, eax
xor edx, edx
lea ecx, [ebp - 0x430]
lock or dword [ecx], edx
mov dword [0x4ec54c], eax
push 0x4e60c8
call ebx
mov ecx, dword [0x4ec54c]
push 0
push 0
push 1
push esi
push str.start_exe
call fcn.0043b160
mov edx, dword [ebp - 0x4bc]
cmp edx, 8
jb 0x40c45a
mov ecx, dword [ebp - 0x4d0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40c450
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c66b
push edx
push ecx
call fcn.00436532
add esp, 8
xorps xmm0, xmm0
mov dword [ebp - 0x434], 0
push 0x9c
lea eax, [ebp - 0x2a8]
movlpd qword [ebp - 0x44c], xmm0
push 0
push eax
movlpd qword [ebp - 0x444], xmm0
movlpd qword [ebp - 0x43c], xmm0
mov dword [ebp - 0x468], 0x4b8bcc
movups xmmword [ebp - 0x464], xmm0
mov dword [ebp - 0x454], 0
mov dword [ebp - 0x450], 0
call fcn.0047af10
add esp, 0xc
lea ecx, [ebp - 0x2a8]
call fcn.0040d1f0
push 0
lea ecx, [ebp - 0x2a8]
call fcn.00411180
mov edi, dword [sym.imp.USER32.dll_PeekMessageW]
mov ebx, 1
xor esi, esi
nop
test ebx, ebx
je 0x40c510
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x44c]
push eax
call edi
test eax, eax
jne 0x40c510
mov eax, dword [ebp - 0x468]
lea ecx, [ebp - 0x468]
push esi
call dword [eax + 4]
inc esi
test eax, eax
jne 0x40c4e4
xor ebx, ebx
push 0
push 0
push 0
lea eax, [ebp - 0x44c]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
cmp eax, 0xffffffff
je 0x40c4e0
test eax, eax
je 0x40c5a6
lea eax, [ebp - 0x44c]
push eax
mov eax, dword [ebp - 0x468]
lea ecx, [ebp - 0x468]
call dword [eax]
test eax, eax
jne 0x40c55f
lea eax, [ebp - 0x44c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x44c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
mov eax, dword [ebp - 0x448]
cmp eax, 0x118
ja 0x40c57a
je 0x40c596
cmp eax, 0xf
je 0x40c596
cmp eax, 0xa0
jmp 0x40c57f
cmp eax, 0x200
je 0x40c596
mov ecx, 1
xor eax, eax
test ecx, ecx
mov ebx, ecx
cmove eax, esi
mov esi, eax
jmp 0x40c4e0
xor ecx, ecx
xor eax, eax
test ecx, ecx
cmove eax, esi
mov esi, eax
jmp 0x40c4e0
lea ecx, [ebp - 0x2a8]
call fcn.0040d6c0
mov eax, dword [ebp - 0x458]
test eax, eax
je 0x40c5ce
push eax
call fcn.0047e4f9
add esp, 4
mov dword [ebp - 0x458], 0
mov eax, dword [ebp - 0x464]
mov dword [ebp - 0x454], 0
mov dword [ebp - 0x450], 0
test eax, eax
je 0x40c5ff
push eax
call fcn.0047e4f9
add esp, 4
mov dword [ebp - 0x464], 0
mov dword [ebp - 0x460], 0
mov dword [ebp - 0x45c], 0
lea ecx, [ebp - 0x498]
call fcn.0043dc10
mov eax, dword [ebp - 0x4b8]
test eax, eax
je 0x40c62f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.0045fb50
call fcn.00430540
call fcn.00430530
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004367da
mov esp, ebp
pop ebp
ret 0x10
call fcn.0047e4a9
call fcn.0047e4a9
call fcn.0047e4a9
call fcn.0047e4a9
int3