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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x378
mov eax, dword [0x4d6390]
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.00408160
push 0
push 0
push 0x4abc3c
call fcn.00407b40
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00479790
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 0x40be10
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 0x40be79
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40be50
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
push 0x104
push 0x4dba30
call fcn.0047f66c
add esp, 0x10
lea eax, [ebp - 0x360]
push eax
call fcn.0042be80
add esp, 4
mov ecx, eax
push 0xf
push str.dll_repair.log
call fcn.00409f70
cmp dword [eax + 0x14], 8
jb 0x40be9e
mov eax, dword [eax]
push 0x4ab610
push 0x6400000
push 1
push 0
push eax
call fcn.00433e80
mov edx, dword [ebp - 0x34c]
cmp edx, 8
jb 0x40bef2
mov ecx, dword [ebp - 0x360]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40bee8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c968
push edx
push ecx
call fcn.0045801e
add esp, 8
push 2
call fcn.00455070
add esp, 4
call fcn.0042baf0
call fcn.00433d90
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x40c057
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.0040a100
push 3
push 0x4abab4
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 0xf
mov byte [ebp - 0x224], 0
call fcn.0040a100
call fcn.00433d90
mov edi, eax
lea ecx, [ebp - 0x328]
push 0x6e
lea eax, [ebp - 0x340]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.00405130
mov esi, eax
push str.cmdline:
push esi
call fcn.004060d0
test ebx, ebx
mov ecx, 0x4ab884
cmovne ecx, ebx
push ecx
push esi
call fcn.004043f0
mov eax, dword [edi]
add esp, 0x10
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x328]
call fcn.00406330
mov edx, dword [ebp - 0x210]
cmp edx, 0x10
jb 0x40c002
mov ecx, dword [ebp - 0x224]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40bff8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c96d
push edx
push ecx
call fcn.0045801e
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 0x40c057
mov ecx, dword [ebp - 0x340]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40c04d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c96d
push edx
push ecx
call fcn.0045801e
add esp, 8
mov dword [ebp - 0x348], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.0042b360
push 0x208
mov esi, eax
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00479790
push 0x104
lea eax, [ebp - 0x20c]
push eax
push esi
call fcn.0042b400
lea eax, [ebp - 0x20c]
push eax
call fcn.00454d00
add esp, 0x20
test eax, eax
jne 0x40c17c
call fcn.00433d90
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x40c940
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.0040a100
push 3
push 0x4abab4
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 0xf
mov byte [ebp - 0x224], 0
call fcn.0040a100
call fcn.00433d90
mov edi, eax
lea ecx, [ebp - 0x9c]
push 0x72
lea eax, [ebp - 0x340]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.00405130
mov esi, eax
push str.parent_sign_check_not_pass
push esi
call fcn.004060d0
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x9c]
call fcn.00406330
lea ecx, [ebp - 0x224]
call fcn.00405aa0
lea ecx, [ebp - 0x340]
call fcn.00405aa0
jmp 0x40c940
push 0x30
lea eax, [ebp - 0x290]
push 0
push eax
call fcn.00479790
add esp, 0xc
lea ecx, [ebp - 0x290]
call fcn.004370d0
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]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c1c0
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x224]
call fcn.0040a200
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x290]
call fcn.00437800
mov edx, dword [ebp - 0x210]
test eax, eax
sete bl
cmp edx, 8
jb 0x40c233
mov ecx, dword [ebp - 0x224]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40c229
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c972
push edx
push ecx
call fcn.0045801e
add esp, 8
test bl, bl
je 0x40c2d8
call fcn.00433d90
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x40c4d3
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.0040a100
push 3
push 0x4abab4
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 0xf
mov byte [ebp - 0x224], 0
call fcn.0040a100
call fcn.00433d90
mov edi, eax
lea ecx, [ebp - 0x9c]
push 0x7a
lea eax, [ebp - 0x340]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.00405130
push str.not_a_cmdline
jmp 0x40c49f
mov ecx, dword [0x4dc094]
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ecx, ecx
jne 0x40c33a
push 0x4d6038
call edi
cmp dword [0x4dc094], 0
jne 0x40c32d
push 4
call fcn.00457fee
add esp, 4
test eax, eax
je 0x40c31b
mov ecx, eax
mov dword [eax], 0
call fcn.00434e00
jmp 0x40c31d
xor eax, eax
xor edx, edx
lea ecx, [ebp - 0x228]
lock or dword [ecx], edx
mov dword [0x4dc094], eax
push 0x4d6038
call ebx
mov ecx, dword [0x4dc094]
push 0
push 0x4abc3c
push 2
call fcn.00434e80
test eax, eax
jne 0x40c3ed
call fcn.00433d90
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x40c4d3
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.0040a100
push 3
push 0x4abab4
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 0xf
mov byte [ebp - 0x224], 0
call fcn.0040a100
call fcn.00433d90
mov edi, eax
lea ecx, [ebp - 0x9c]
push 0x7f
lea eax, [ebp - 0x340]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.00405130
push str.stat_init_failed
jmp 0x40c49f
lea eax, [ebp - 0x290]
push eax
call fcn.00406a60
add esp, 4
test al, al
je 0x40c4e3
call fcn.00433d90
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x40c4d3
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.0040a100
push 3
push 0x4abab4
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 0xf
mov byte [ebp - 0x224], 0
call fcn.0040a100
call fcn.00433d90
mov edi, eax
lea ecx, [ebp - 0x9c]
push 0x84
lea eax, [ebp - 0x340]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.00405130
push str.popularize
mov esi, eax
push esi
call fcn.004060d0
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x9c]
call fcn.00406330
lea ecx, [ebp - 0x224]
call fcn.00405aa0
lea ecx, [ebp - 0x340]
call fcn.00405aa0
lea ecx, [ebp - 0x290]
call fcn.00437130
jmp 0x40c940
lea eax, [ebp - 0x348]
push eax
call fcn.00407d50
add esp, 4
test al, al
je 0x40c6ac
push 0x4ab5a4
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 0x40c924
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]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c542
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x224]
call fcn.0040a200
call fcn.00433d90
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x40c64f
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.0040a100
push 3
push 0x4abab4
lea ecx, [ebp - 0x378]
mov dword [ebp - 0x368], 0
mov dword [ebp - 0x364], 0xf
mov byte [ebp - 0x378], 0
call fcn.0040a100
call fcn.00433d90
mov edi, eax
lea ecx, [ebp - 0x9c]
push 0x28
lea eax, [ebp - 0x360]
push eax
lea eax, [ebp - 0x378]
push eax
call fcn.00405130
mov esi, eax
push str.dispatch_cmd_line:
push esi
call fcn.004043f0
cmp dword [ebp - 0x210], 8
lea ecx, [ebp - 0x224]
mov eax, 0x4ab884
cmovae ecx, dword [ebp - 0x224]
test ecx, ecx
cmovne eax, ecx
push eax
push esi
call fcn.004043f0
mov eax, dword [edi]
add esp, 0x10
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x9c]
call fcn.00406330
lea ecx, [ebp - 0x378]
call fcn.00405aa0
lea ecx, [ebp - 0x360]
call fcn.00405aa0
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.00405af0
jmp 0x40c924
lea eax, [ebp - 0x360]
push eax
call fcn.0042afa0
mov esi, eax
add esp, 4
cmp dword [esi + 0x14], 8
jb 0x40c6c5
mov esi, dword [esi]
mov ecx, dword [0x4dc094]
test ecx, ecx
jne 0x40c71b
push 0x4d6038
call edi
cmp dword [0x4dc094], 0
jne 0x40c70e
push 4
call fcn.00457fee
add esp, 4
test eax, eax
je 0x40c6fc
mov ecx, eax
mov dword [eax], 0
call fcn.00434e00
jmp 0x40c6fe
xor eax, eax
xor edx, edx
lea ecx, [ebp - 0x228]
lock or dword [ecx], edx
mov dword [0x4dc094], eax
push 0x4d6038
call ebx
mov ecx, dword [0x4dc094]
push 0
push 0
push 1
push esi
push str.start_exe
call fcn.00434ea0
mov edx, dword [ebp - 0x34c]
cmp edx, 8
jb 0x40c76c
mov ecx, dword [ebp - 0x360]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40c762
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c977
push edx
push ecx
call fcn.0045801e
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], 0x4abaac
movups xmmword [ebp - 0x25c], xmm0
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x248], 0
call fcn.00479790
add esp, 0xc
lea ecx, [ebp - 0x328]
call fcn.0040d4f0
push 0
lea ecx, [ebp - 0x328]
call fcn.004113f0
mov edi, dword [sym.imp.USER32.dll_PeekMessageW]
mov ebx, 1
xor esi, esi
test ebx, ebx
je 0x40c821
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x244]
push eax
call edi
test eax, eax
jne 0x40c821
mov eax, dword [ebp - 0x260]
lea ecx, [ebp - 0x260]
push esi
call dword [eax + 4]
inc esi
test eax, eax
jne 0x40c7f5
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 0x40c7f1
test eax, eax
je 0x40c8b7
lea eax, [ebp - 0x244]
push eax
mov eax, dword [ebp - 0x260]
lea ecx, [ebp - 0x260]
call dword [eax]
test eax, eax
jne 0x40c870
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 0x40c88b
je 0x40c8a7
cmp eax, 0xf
je 0x40c8a7
cmp eax, 0xa0
jmp 0x40c890
cmp eax, 0x200
je 0x40c8a7
mov ecx, 1
xor eax, eax
test ecx, ecx
mov ebx, ecx
cmove eax, esi
mov esi, eax
jmp 0x40c7f1
xor ecx, ecx
xor eax, eax
test ecx, ecx
cmove eax, esi
mov esi, eax
jmp 0x40c7f1
lea ecx, [ebp - 0x328]
call fcn.0040d9b0
mov eax, dword [ebp - 0x250]
test eax, eax
je 0x40c8df
push eax
call fcn.0047cd91
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 0x40c910
push eax
call fcn.0047cd91
add esp, 4
mov dword [ebp - 0x25c], 0
mov dword [ebp - 0x258], 0
mov dword [ebp - 0x254], 0
lea ecx, [ebp - 0x290]
call fcn.00437130
mov eax, dword [ebp - 0x348]
test eax, eax
je 0x40c940
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00455460
call fcn.0042c9d0
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.004582e2
mov esp, ebp
pop ebp
ret 0x10
call fcn.0047cbf9
call fcn.0047cbf9
call fcn.0047cbf9
call fcn.0047cbf9
int3