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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x378
mov eax, dword [0x4df210]
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 - 0x341]
call fcn.004081a0
push 0
push 0
push 0x4b2d6c
call fcn.00407c20
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004752d0
add esp, 0x18
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x20c]
push eax
call edi
mov esi, 2
nop dword [eax + eax]
lea eax, [ebp - 0x20c]
push eax
call edi
sub esi, 1
jne 0x40baf0
push str.UtilsDumpUper.exe
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40bb59
lea ecx, [ebp - 0x20c]
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 - 0x20c]
sar ecx, 1
push ecx
push eax
push 0x104
push 0x4e4b90
call fcn.0047b2d7
add esp, 0x10
lea eax, [ebp - 0x360]
push eax
call fcn.0042f650
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 0x4b27ac
push 0x6400000
push 1
push 0
push eax
call fcn.004385a0
mov edx, dword [ebp - 0x34c]
cmp edx, 8
jb 0x40bbd2
mov ecx, dword [ebp - 0x360]
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.004360bd
add esp, 8
push 2
call fcn.00459b20
add esp, 4
call fcn.0042f3b0
call fcn.0042f170
call fcn.00403c80
call fcn.004384b0
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 - 0x340]
mov dword [ebp - 0x330], eax
mov dword [ebp - 0x32c], 0xf
mov byte [ebp - 0x340], al
call fcn.00409ef0
push 3
push 0x4b2be4
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 0xf
mov byte [ebp - 0x224], 0
call fcn.00409ef0
call fcn.004384b0
mov edi, eax
lea ecx, [ebp - 0x328]
push 0x71
lea eax, [ebp - 0x340]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.004054a0
mov esi, eax
push str.cmdline:
push esi
call fcn.004063d0
test ebx, ebx
mov ecx, 0x4b29ec
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 - 0x328]
call fcn.00406630
mov edx, dword [ebp - 0x210]
cmp edx, 0x10
jb 0x40bcec
mov ecx, dword [ebp - 0x224]
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.004360bd
add esp, 8
mov edx, dword [ebp - 0x32c]
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 0xf
mov byte [ebp - 0x224], 0
cmp edx, 0x10
jb 0x40bd41
mov ecx, dword [ebp - 0x340]
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.004360bd
add esp, 8
mov dword [ebp - 0x348], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.0042e9e0
push 0x208
mov esi, eax
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004752d0
push 0x104
lea eax, [ebp - 0x20c]
push eax
push esi
call fcn.0042ea80
lea eax, [ebp - 0x20c]
push eax
call fcn.004597b0
add esp, 0x20
test eax, eax
jne 0x40be66
call fcn.004384b0
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 - 0x340]
mov dword [ebp - 0x330], eax
mov dword [ebp - 0x32c], 0xf
mov byte [ebp - 0x340], al
call fcn.00409ef0
push 3
push 0x4b2be4
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 0xf
mov byte [ebp - 0x224], 0
call fcn.00409ef0
call fcn.004384b0
mov edi, eax
lea ecx, [ebp - 0x9c]
push 0x75
lea eax, [ebp - 0x340]
push eax
lea eax, [ebp - 0x224]
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 - 0x224]
call fcn.00405e10
lea ecx, [ebp - 0x340]
call fcn.00405e10
jmp 0x40c62f
push 0x30
lea eax, [ebp - 0x290]
push 0
push eax
call fcn.004752d0
add esp, 0xc
lea ecx, [ebp - 0x290]
call fcn.0043bb50
mov ecx, ebx
mov dword [ebp - 0x214], 0
xor eax, eax
mov dword [ebp - 0x210], 7
mov word [ebp - 0x224], 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 - 0x224]
call fcn.00404450
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x290]
call fcn.0043c330
mov edx, dword [ebp - 0x210]
test eax, eax
sete bl
cmp edx, 8
jb 0x40bf19
mov ecx, dword [ebp - 0x224]
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.004360bd
add esp, 8
test bl, bl
je 0x40bfbe
call fcn.004384b0
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 - 0x340]
mov dword [ebp - 0x330], eax
mov dword [ebp - 0x32c], 0xf
mov byte [ebp - 0x340], al
call fcn.00409ef0
push 3
push 0x4b2be4
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 0xf
mov byte [ebp - 0x224], 0
call fcn.00409ef0
call fcn.004384b0
mov edi, eax
lea ecx, [ebp - 0x9c]
push 0x7d
lea eax, [ebp - 0x340]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.004054a0
push str.not_a_cmdline
jmp 0x40c188
mov ecx, dword [0x4e51c4]
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ecx, ecx
jne 0x40c020
push 0x4df0c8
call edi
cmp dword [0x4e51c4], 0
jne 0x40c013
push 4
call fcn.0043608d
add esp, 4
test eax, eax
je 0x40c001
mov ecx, eax
mov dword [eax], 0
call fcn.00439510
jmp 0x40c003
xor eax, eax
xor edx, edx
lea ecx, [ebp - 0x228]
lock or dword [ecx], edx
mov dword [0x4e51c4], eax
push 0x4df0c8
call ebx
mov ecx, dword [0x4e51c4]
push 0
push 0x4b2d6c
push 2
call fcn.00439590
test eax, eax
jne 0x40c0d6
call fcn.004384b0
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 - 0x340]
mov dword [ebp - 0x330], eax
mov dword [ebp - 0x32c], 0xf
mov byte [ebp - 0x340], al
call fcn.00409ef0
push 3
push 0x4b2be4
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 0xf
mov byte [ebp - 0x224], 0
call fcn.00409ef0
call fcn.004384b0
mov edi, eax
lea ecx, [ebp - 0x9c]
push 0x82
lea eax, [ebp - 0x340]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.004054a0
push str.stat_init_failed
jmp 0x40c188
lea eax, [ebp - 0x290]
push eax
call fcn.00406c70
add esp, 4
test al, al
je 0x40c1cc
call fcn.004384b0
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 - 0x340]
mov dword [ebp - 0x330], eax
mov dword [ebp - 0x32c], 0xf
mov byte [ebp - 0x340], al
call fcn.00409ef0
push 3
push 0x4b2be4
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 0xf
mov byte [ebp - 0x224], 0
call fcn.00409ef0
call fcn.004384b0
mov edi, eax
lea ecx, [ebp - 0x9c]
push 0x87
lea eax, [ebp - 0x340]
push eax
lea eax, [ebp - 0x224]
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 - 0x224]
call fcn.00405e10
lea ecx, [ebp - 0x340]
call fcn.00405e10
lea ecx, [ebp - 0x290]
call fcn.0043bbb0
jmp 0x40c62f
lea eax, [ebp - 0x348]
push eax
call fcn.00407e30
add esp, 4
test al, al
je 0x40c39a
push 0x4b275c
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 - 0x214], 0
mov ecx, edx
mov dword [ebp - 0x210], 7
xor eax, eax
mov word [ebp - 0x224], 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 - 0x224]
call fcn.00404450
call fcn.004384b0
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 - 0x360]
mov dword [ebp - 0x350], eax
mov dword [ebp - 0x34c], 0xf
mov byte [ebp - 0x360], al
call fcn.00409ef0
push 3
push 0x4b2be4
lea ecx, [ebp - 0x378]
mov dword [ebp - 0x368], 0
mov dword [ebp - 0x364], 0xf
mov byte [ebp - 0x378], 0
call fcn.00409ef0
call fcn.004384b0
mov edi, eax
lea ecx, [ebp - 0x9c]
push 0x29
lea eax, [ebp - 0x360]
push eax
lea eax, [ebp - 0x378]
push eax
call fcn.004054a0
mov esi, eax
push str.dispatch_cmd_line:
push esi
call fcn.00404760
cmp dword [ebp - 0x210], 8
lea ecx, [ebp - 0x224]
mov eax, 0x4b29ec
cmovae ecx, dword [ebp - 0x224]
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 - 0x378]
call fcn.00405e10
lea ecx, [ebp - 0x360]
call fcn.00405e10
mov eax, dword [ebp - 0x214]
add eax, eax
mov dword [ebp - 0x334], 0
cmp dword [ebp - 0x210], 8
push 0
mov dword [ebp - 0x330], eax
lea eax, [ebp - 0x224]
cmovae eax, dword [ebp - 0x224]
push 0x1388
push 1
mov dword [ebp - 0x32c], eax
lea eax, [ebp - 0x334]
push eax
push 0
push 0x4a
push ebx
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
lea ecx, [ebp - 0x224]
call fcn.00403a80
jmp 0x40c613
lea eax, [ebp - 0x360]
push eax
call fcn.0042e620
mov esi, eax
add esp, 4
cmp dword [esi + 0x14], 8
jb 0x40c3b3
mov esi, dword [esi]
mov ecx, dword [0x4e51c4]
test ecx, ecx
jne 0x40c409
push 0x4df0c8
call edi
cmp dword [0x4e51c4], 0
jne 0x40c3fc
push 4
call fcn.0043608d
add esp, 4
test eax, eax
je 0x40c3ea
mov ecx, eax
mov dword [eax], 0
call fcn.00439510
jmp 0x40c3ec
xor eax, eax
xor edx, edx
lea ecx, [ebp - 0x228]
lock or dword [ecx], edx
mov dword [0x4e51c4], eax
push 0x4df0c8
call ebx
mov ecx, dword [0x4e51c4]
push 0
push 0
push 1
push esi
push str.start_exe
call fcn.004395b0
mov edx, dword [ebp - 0x34c]
cmp edx, 8
jb 0x40c45a
mov ecx, dword [ebp - 0x360]
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.004360bd
add esp, 8
xorps xmm0, xmm0
mov dword [ebp - 0x22c], 0
push 0x98
lea eax, [ebp - 0x328]
movlpd qword [ebp - 0x244], xmm0
push 0
push eax
movlpd qword [ebp - 0x23c], xmm0
movlpd qword [ebp - 0x234], xmm0
mov dword [ebp - 0x260], 0x4b2bdc
movups xmmword [ebp - 0x25c], xmm0
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x248], 0
call fcn.004752d0
add esp, 0xc
lea ecx, [ebp - 0x328]
call fcn.0040d1f0
push 0
lea ecx, [ebp - 0x328]
call fcn.004110d0
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 - 0x244]
push eax
call edi
test eax, eax
jne 0x40c510
mov eax, dword [ebp - 0x260]
lea ecx, [ebp - 0x260]
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 - 0x244]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
cmp eax, 0xffffffff
je 0x40c4e0
test eax, eax
je 0x40c5a6
lea eax, [ebp - 0x244]
push eax
mov eax, dword [ebp - 0x260]
lea ecx, [ebp - 0x260]
call dword [eax]
test eax, eax
jne 0x40c55f
lea eax, [ebp - 0x244]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x244]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
mov eax, dword [ebp - 0x240]
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 - 0x328]
call fcn.0040d6b0
mov eax, dword [ebp - 0x250]
test eax, eax
je 0x40c5ce
push eax
call fcn.004788b9
add esp, 4
mov dword [ebp - 0x250], 0
mov eax, dword [ebp - 0x25c]
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x248], 0
test eax, eax
je 0x40c5ff
push eax
call fcn.004788b9
add esp, 4
mov dword [ebp - 0x25c], 0
mov dword [ebp - 0x258], 0
mov dword [ebp - 0x254], 0
lea ecx, [ebp - 0x290]
call fcn.0043bbb0
mov eax, dword [ebp - 0x348]
test eax, eax
je 0x40c62f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00459f10
call fcn.004300a0
call fcn.00430090
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.00436365
mov esp, ebp
pop ebp
ret 0x10
call fcn.00478869
call fcn.00478869
call fcn.00478869
call fcn.00478869
int3