Function at 0x4e2280
Capabilities:
Accept command line arguments
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x745210
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x8312b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 0
mov dword [ebp - 0x124], eax
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
js 0x4e2a3b
push 3
xor eax, eax
mov dword [ebp - 0x60], 0
push 0x7fa134
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
call fcn.0044bdc0
push str.RepairMaster.log
lea edx, [ebp - 0x70]
lea ecx, [ebp - 0x40]
call fcn.004fd770
mov edx, eax
lea ecx, [ebp - 0x88]
call fcn.004607a0
add esp, 4
lea ecx, [ebp - 0x40]
call fcn.0044bf40
lea ecx, [ebp - 0x70]
call fcn.0044bf40
call fcn.0046efe0
cmp dword [ebp - 0x74], 8
lea ecx, [ebp - 0x88]
push 3
cmovae ecx, dword [ebp - 0x88]
mov esi, eax
lea eax, [ebp - 0x10c]
push ecx
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x110], eax
call fcn.004918a0
mov edx, dword [ebp - 0x110]
mov ecx, edx
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
lea edi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4e2370
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.00460f20
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.004ec7d0
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x4e23c2
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4e23b8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e2a5b
push edx
push ecx
call fcn.006f4f2f
add esp, 8
mov eax, dword [ebp - 0x110]
lea ecx, [ebp - 0x10c]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
cmp eax, ecx
je 0x4e23ed
push eax
call fcn.00715cee
add esp, 4
call fcn.0046efe0
mov esi, dword [eax + 8]
test esi, esi
je 0x4e2400
lock inc dword [esi + 4]
mov esi, dword [eax + 8]
mov edi, dword [eax + 4]
or ebx, 0xffffffff
mov dword [ebp - 4], 0
test esi, esi
je 0x4e2430
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x4e2430
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x4e2430
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x4e279c
call fcn.0046efe0
mov ecx, dword [eax + 8]
mov dword [ebp - 0x118], ecx
test ecx, ecx
je 0x4e245e
lock inc dword [ecx + 4]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x118], ecx
mov eax, dword [eax + 4]
push 1
mov dword [ebp - 0x11c], eax
lea eax, [ebp - 0x40]
push 0x7fa194
push eax
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
mov dword [ebp - 0x30], 1
call fcn.0070d750
add esp, 0xc
mov byte [ebp - 0x3f], 0
push 0x5c
push 0x7fa160
call fcn.0070c820
add esp, 8
test eax, eax
je 0x4e24b5
push 0x5c
push str.d:_svn_trunkdrvrepairtoolclient_repairtool.cpp
call fcn.0070c820
add esp, 8
inc eax
jmp 0x4e24ba
mov eax, 0x7fa198
push eax
lea ecx, [ebp - 0x40]
call fcn.00463b90
mov edi, eax
mov edx, dword [edi + 0x14]
mov eax, edx
mov ecx, dword [edi + 0x10]
sub eax, ecx
cmp eax, 1
jb 0x4e24fc
lea eax, [ecx + 1]
mov dword [edi + 0x10], eax
mov eax, edi
cmp edx, 0x10
jb 0x4e24e3
mov eax, dword [edi]
push 1
lea esi, [eax + ecx]
push 0x7fa208
push esi
call fcn.0070d750
add esp, 0xc
mov byte [esi + 1], 0
jmp 0x4e251b
push 1
push 0x7fa208
mov byte [ebp - 0x114], 0
mov ecx, edi
push dword [ebp - 0x114]
push 1
call fcn.004639e0
mov edi, eax
mov edx, dword [edi + 0x14]
mov eax, edx
mov ecx, dword [edi + 0x10]
sub eax, ecx
cmp eax, 7
jb 0x4e2552
lea eax, [ecx + 7]
mov dword [edi + 0x10], eax
mov eax, edi
cmp edx, 0x10
jb 0x4e2539
mov eax, dword [edi]
push 7
lea esi, [eax + ecx]
push str.WinMain
push esi
call fcn.0070d750
add esp, 0xc
mov byte [esi + 7], 0
jmp 0x4e2571
push 7
push str.WinMain
mov byte [ebp - 0x114], 0
mov ecx, edi
push dword [ebp - 0x114]
push 7
call fcn.004639e0
mov edi, eax
mov edx, dword [edi + 0x14]
mov eax, edx
mov ecx, dword [edi + 0x10]
sub eax, ecx
cmp eax, 2
jb 0x4e25a8
lea eax, [ecx + 2]
mov dword [edi + 0x10], eax
mov eax, edi
cmp edx, 0x10
jb 0x4e258f
mov eax, dword [edi]
push 2
lea esi, [eax + ecx]
push 0x7fa210
push esi
call fcn.0070d750
add esp, 0xc
mov byte [esi + 2], 0
jmp 0x4e25c7
push 2
push 0x7fa210
mov byte [ebp - 0x114], 0
mov ecx, edi
push dword [ebp - 0x114]
push 2
call fcn.004639e0
mov edi, eax
mov edx, 0x96
lea ecx, [ebp - 0x13]
call fcn.0046eeb0
lea ecx, [ebp - 0x13]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], 0
cmp eax, ecx
je 0x4e25f9
sub ecx, eax
push ecx
push eax
lea ecx, [ebp - 0x70]
call fcn.00460f20
lea eax, [ebp - 0x70]
mov ecx, edi
push eax
call fcn.00463880
mov edi, eax
mov edx, dword [edi + 0x14]
mov eax, edx
mov ecx, dword [edi + 0x10]
sub eax, ecx
cmp eax, 2
jb 0x4e263d
lea eax, [ecx + 2]
mov dword [edi + 0x10], eax
mov eax, edi
cmp edx, 0x10
jb 0x4e2624
mov eax, dword [edi]
push 2
lea esi, [eax + ecx]
push 0x7fa20c
push esi
call fcn.0070d750
add esp, 0xc
mov byte [esi + 2], 0
jmp 0x4e265c
push 2
push 0x7fa20c
mov byte [ebp - 0x114], 0
mov ecx, edi
push dword [ebp - 0x114]
push 2
call fcn.004639e0
mov edi, eax
mov edx, dword [edi + 0x14]
mov eax, edx
mov ecx, dword [edi + 0x10]
sub eax, ecx
cmp eax, 0x1d
jb 0x4e2693
lea eax, [ecx + 0x1d]
mov dword [edi + 0x10], eax
mov eax, edi
cmp edx, 0x10
jb 0x4e267a
mov eax, dword [edi]
push 0x1d
lea esi, [eax + ecx]
push str.3dm_dllrepair_loaded_success.
push esi
call fcn.0070d750
add esp, 0xc
mov byte [esi + 0x1d], 0
jmp 0x4e26b2
push 0x1d
push str.3dm_dllrepair_loaded_success.
mov byte [ebp - 0x114], 0
mov ecx, edi
push dword [ebp - 0x114]
push 0x1d
call fcn.004639e0
mov edi, eax
cmp dword [edi + 0x14], 0x10
jb 0x4e26ba
mov edi, dword [edi]
mov ecx, dword [ebp - 0x11c]
push edi
push 2
sub esp, 0xc
mov dword [ebp - 0x20], 0x8048bc
mov eax, esp
mov dword [ebp - 0x1c], 0
movq xmm0, qword [ebp - 0x20]
movq qword [eax], xmm0
mov dword [eax + 8], 0x8048bc
call fcn.0046ec20
mov edx, dword [ebp - 0x5c]
cmp edx, 0x10
jb 0x4e271f
mov ecx, dword [ebp - 0x70]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4e2715
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e2a60
push edx
push ecx
call fcn.006f4f2f
add esp, 8
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x4e2753
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4e2749
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e2a65
push edx
push ecx
call fcn.006f4f2f
add esp, 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
mov esi, dword [ebp - 0x118]
mov dword [ebp - 4], 1
test esi, esi
je 0x4e2795
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x4e2795
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x4e2795
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edx, eax
mov dword [ebp - 0x48], 0
mov ecx, edx
mov dword [ebp - 0x44], 7
xor eax, eax
mov word [ebp - 0x58], ax
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4e27c0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x58]
call fcn.0044bdc0
mov esi, dword [ebp - 0x44]
lea ecx, [ebp - 0x58]
mov edx, dword [ebp - 0x48]
cmp esi, 8
push 0xc
cmovae ecx, dword [ebp - 0x58]
push str.__svr_noscan
push 0
call fcn.004634e0
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0xc
cmp eax, 0xffffffff
je 0x4e28bb
push str.Global9464DCBE_BA24_4DC1_9673_39AF110C8D49
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x83cebc], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4e2868
cmp eax, 5
je 0x4e2868
push dword [ebp - 0x124]
call dword [sym.imp.DuiLib.dll_public:_static_void___cdecl_DuiLib::CPaintManagerUI::SetInstance_struct_HINSTANCE____]
add esp, 4
call fcn.004e1fd0
lea ecx, [ebp - 0x120]
call fcn.004dcb20
push ecx
mov ecx, dword [eax]
call fcn.004a6c10
mov dword [ebp - 4], 2
mov esi, dword [ebp - 0x11c]
jmp 0x4e29d4
mov eax, dword [0x83cebc]
test eax, eax
je 0x4e2874
push eax
call edi
push 0
mov dword [0x83cebc], 0
push str.DeskPopupWnd
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
test edi, edi
je 0x4e28a8
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 1
push edi
call esi
push 9
push edi
call esi
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
lea ecx, [ebp - 0x58]
call fcn.0044bf40
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4e29fe
mov edx, dword [ebp - 0x48]
lea ecx, [ebp - 0x58]
push 6
cmp esi, 8
push str.__type
cmovae ecx, dword [ebp - 0x58]
push 0
call fcn.004634e0
add esp, 0xc
cmp eax, 0xffffffff
jne 0x4e2926
push str.Global96CBEF35_366C_4054_BE84_DFE7A0F763F3
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x83cec0], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4e2904
cmp eax, 5
jne 0x4e2926
mov eax, dword [0x83cec0]
test eax, eax
je 0x4e2910
push eax
call edi
push 0
mov dword [0x83cec0], 0
push str.DriverMaster_MainWnd
jmp 0x4e2885
push dword [ebp - 0x124]
call dword [sym.imp.DuiLib.dll_public:_static_void___cdecl_DuiLib::CPaintManagerUI::SetInstance_struct_HINSTANCE____]
add esp, 4
call fcn.004e1fd0
cmp dword [ebp - 0x44], 8
lea ecx, [ebp - 0x58]
mov edx, dword [ebp - 0x48]
cmovae ecx, dword [ebp - 0x58]
push 0xc
push str.__settingwnd
push 0
call fcn.004634e0
add esp, 0xc
cmp eax, 0xffffffff
je 0x4e29a9
lea ecx, [ebp - 0x120]
call fcn.004dcb20
mov eax, dword [eax]
mov byte [eax + 0x221], 1
mov dword [ebp - 4], 3
mov esi, dword [ebp - 0x11c]
test esi, esi
je 0x4e29a2
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x4e29a2
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x4e29a2
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x128]
call fcn.004dcb20
cmp dword [ebp - 0x44], 8
mov ecx, dword [eax]
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.004a5560
mov dword [ebp - 4], 4
mov esi, dword [ebp - 0x124]
test esi, esi
je 0x4e29f6
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x4e29f6
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x4e29f6
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea ecx, [ebp - 0x58]
call fcn.0044bf40
mov eax, dword [0x83cec0]
test eax, eax
je 0x4e2a0a
push eax
call edi
mov eax, dword [0x83cebc]
mov dword [0x83cec0], 0
test eax, eax
je 0x4e2a20
push eax
call edi
mov dword [0x83cebc], 0
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [ebp - 0x88]
call fcn.0044bf40
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006f4f1e
mov esp, ebp
pop ebp
ret 0x10
call fcn.00710a9c
call fcn.00710a9c
call fcn.00710a9c
int3