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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46ce66
mov eax, dword fs:[0]
push eax
sub esp, 0x34c
mov eax, dword [0x48d814]
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
xor ebx, ebx
mov dword [ebp - 0x334], ebx
mov dword [ebp - 4], ebx
push str.FFB22F31_FAB6_4D21_8682_A62956CF6A45
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 0x334], eax
cmp eax, ebx
je 0x412a04
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x412a12
mov dword [ebp - 0x334], ebx
mov dword [ebp - 4], 0xffffffff
xor eax, eax
jmp 0x4132f4
lea eax, [ebp - 0xc8]
push eax
call fcn.00427290
mov byte [ebp - 4], 1
push str.log_
lea ecx, [ebp - 0xc8]
push ecx
lea edx, [ebp - 0xac]
push edx
call fcn.00406660
mov byte [ebp - 4], 2
lea eax, [ebp - 0xac]
push eax
call fcn.004270f0
add esp, 0x14
push 0xa
push str.etsvr5.log
lea ecx, [ebp - 0xac]
call fcn.00406500
mov eax, dword [ebp - 0xa8]
mov edi, 8
cmp dword [ebp - 0x94], edi
jae 0x412a78
lea eax, [ebp - 0xa8]
push eax
lea ecx, [ebp - 0x310]
call fcn.0042de10
mov byte [ebp - 4], 3
call fcn.00426560
lea ecx, [ebp - 0x310]
push ecx
mov dword [eax], 0x1f4
call fcn.00426560
mov ecx, eax
call fcn.00426610
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push 0x190
call fcn.00426560
push eax
call fcn.00426520
push str.TestSvr5.ini
lea edx, [ebp - 0xc8]
push edx
lea eax, [ebp - 0xe4]
push eax
call fcn.00406660
add esp, 0x18
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0xe0]
cmp dword [ebp - 0xcc], edi
jae 0x412af0
lea eax, [ebp - 0xe0]
push eax
call fcn.00401640
mov ecx, eax
call fcn.00405e00
xor ecx, ecx
push 6
mov word [ebp - 0x328], cx
mov esi, 7
push str.server
lea ecx, [ebp - 0x32c]
mov dword [ebp - 0x314], esi
mov dword [ebp - 0x318], ebx
call fcn.00402fe0
mov byte [ebp - 4], 5
lea edx, [ebp - 0xc8]
push edx
lea eax, [ebp - 0x32c]
push eax
call fcn.004287a0
add esp, 8
mov byte [ebp - 4], 4
cmp dword [ebp - 0x314], edi
jb 0x412b5e
mov ecx, dword [ebp - 0x328]
push ecx
call fcn.00450138
add esp, 4
push 0x474080
lea eax, [ebp - 0x90]
xor edx, edx
push str.DataPath
push eax
mov dword [ebp - 0x314], esi
mov dword [ebp - 0x318], ebx
mov word [ebp - 0x328], dx
call fcn.00401640
mov ecx, eax
call fcn.00404330
mov byte [ebp - 4], 6
cmp dword [ebp - 0x7c], ebx
jne 0x412bae
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0xc8]
push ecx
lea ecx, [ebp - 0x90]
call fcn.00402a00
push 9
xor edx, edx
push str.databases
lea ecx, [ebp - 0x32c]
mov dword [ebp - 0x314], esi
mov dword [ebp - 0x318], ebx
mov word [ebp - 0x328], dx
call fcn.00402fe0
mov byte [ebp - 4], 7
push 0x4743cc
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0x350]
push ecx
call fcn.00406660
mov byte [ebp - 4], 8
push eax
lea edx, [ebp - 0x32c]
push edx
call fcn.004287a0
add esp, 0x14
mov byte [ebp - 4], 7
cmp dword [ebp - 0x338], edi
jb 0x412c20
mov eax, dword [ebp - 0x34c]
push eax
call fcn.00450138
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x338], esi
mov dword [ebp - 0x33c], ebx
mov word [ebp - 0x34c], cx
mov byte [ebp - 4], 6
cmp dword [ebp - 0x314], edi
jb 0x412c50
mov edx, dword [ebp - 0x328]
push edx
call fcn.00450138
add esp, 4
xor ecx, ecx
push 2
xor eax, eax
mov word [ebp - 0x34c], cx
push 0x4743c4
lea ecx, [ebp - 0x350]
mov dword [ebp - 0x314], esi
mov dword [ebp - 0x318], ebx
mov word [ebp - 0x328], ax
mov dword [ebp - 0x338], esi
mov dword [ebp - 0x33c], ebx
call fcn.00402fe0
mov byte [ebp - 4], 9
push 0x4743bc
lea edx, [ebp - 0x90]
push edx
lea eax, [ebp - 0x32c]
push eax
call fcn.00406660
mov byte [ebp - 4], 0xa
push eax
lea ecx, [ebp - 0x350]
push ecx
call fcn.004287a0
add esp, 0x14
mov byte [ebp - 4], 9
cmp dword [ebp - 0x314], edi
jb 0x412cd7
mov edx, dword [ebp - 0x328]
push edx
call fcn.00450138
add esp, 4
xor eax, eax
mov dword [ebp - 0x314], esi
mov dword [ebp - 0x318], ebx
mov word [ebp - 0x328], ax
mov byte [ebp - 4], 6
cmp dword [ebp - 0x338], edi
jb 0x412d07
mov ecx, dword [ebp - 0x34c]
push ecx
call fcn.00450138
add esp, 4
push 4
xor edx, edx
xor eax, eax
push str.form
lea ecx, [ebp - 0x32c]
mov dword [ebp - 0x338], esi
mov dword [ebp - 0x33c], ebx
mov word [ebp - 0x34c], dx
mov dword [ebp - 0x314], esi
mov dword [ebp - 0x318], ebx
mov word [ebp - 0x328], ax
call fcn.00402fe0
mov byte [ebp - 4], 0xb
push str._form
lea ecx, [ebp - 0x90]
push ecx
lea edx, [ebp - 0x350]
push edx
call fcn.00406660
mov byte [ebp - 4], 0xc
push eax
lea eax, [ebp - 0x32c]
push eax
call fcn.004287a0
add esp, 0x14
mov byte [ebp - 4], 0xb
cmp dword [ebp - 0x338], edi
jb 0x412d8e
mov ecx, dword [ebp - 0x34c]
push ecx
call fcn.00450138
add esp, 4
xor edx, edx
mov dword [ebp - 0x338], esi
mov dword [ebp - 0x33c], ebx
mov word [ebp - 0x34c], dx
mov byte [ebp - 4], 6
cmp dword [ebp - 0x314], edi
jb 0x412dbe
mov eax, dword [ebp - 0x328]
push eax
call fcn.00450138
add esp, 4
xor ecx, ecx
push 9
mov word [ebp - 0x328], cx
xor edx, edx
push str.resources
lea ecx, [ebp - 0x350]
mov dword [ebp - 0x314], esi
mov dword [ebp - 0x318], ebx
mov dword [ebp - 0x338], esi
mov dword [ebp - 0x33c], ebx
mov word [ebp - 0x34c], dx
call fcn.00402fe0
mov byte [ebp - 4], 0xd
push str._resources
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0x32c]
push ecx
call fcn.00406660
mov byte [ebp - 4], 0xe
push eax
lea edx, [ebp - 0x350]
push edx
call fcn.004287a0
add esp, 0x14
mov byte [ebp - 4], 0xd
cmp dword [ebp - 0x314], edi
jb 0x412e45
mov eax, dword [ebp - 0x328]
push eax
call fcn.00450138
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x314], esi
mov dword [ebp - 0x318], ebx
mov word [ebp - 0x328], cx
mov byte [ebp - 4], 6
cmp dword [ebp - 0x338], edi
jb 0x412e75
mov edx, dword [ebp - 0x34c]
push edx
call fcn.00450138
add esp, 4
xor eax, eax
push 0x2050301
mov dword [ebp - 0x338], esi
mov dword [ebp - 0x33c], ebx
mov word [ebp - 0x34c], ax
call fcn.0042f750
add esp, 4
test al, al
jne 0x412f9e
push str._nThis_program_got_linked_to_an_incompatible_version_of_the_IBPP_source_code._nCant_execute_safely._n
push 0xc8
call fcn.00426560
push eax
call fcn.00426520
add esp, 0xc
mov byte [ebp - 4], 4
cmp dword [ebp - 0x78], edi
jb 0x412ecf
mov ecx, dword [ebp - 0x8c]
push ecx
call fcn.00450138
add esp, 4
xor edx, edx
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x7c], ebx
mov word [ebp - 0x8c], dx
mov byte [ebp - 4], 3
cmp dword [ebp - 0xcc], edi
jb 0x412ef9
mov eax, dword [ebp - 0xe0]
push eax
call fcn.00450138
add esp, 4
xor ecx, ecx
mov dword [ebp - 0xcc], esi
mov dword [ebp - 0xd0], ebx
mov word [ebp - 0xe0], cx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x310]
call fcn.0042daf0
mov byte [ebp - 4], 1
cmp dword [ebp - 0x94], edi
jb 0x412f38
mov edx, dword [ebp - 0xa8]
push edx
call fcn.00450138
add esp, 4
xor eax, eax
mov dword [ebp - 0x94], esi
mov dword [ebp - 0x98], ebx
mov word [ebp - 0xa8], ax
mov byte [ebp - 4], bl
cmp dword [ebp - 0xb0], edi
jb 0x412f67
mov ecx, dword [ebp - 0xc4]
push ecx
call fcn.00450138
add esp, 4
xor edx, edx
mov dword [ebp - 0xb0], esi
mov dword [ebp - 0xb4], ebx
mov word [ebp - 0xc4], dx
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x334]
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4132f4
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.USER32.dll_DefWindowProcW]
lea eax, [ebp - 0x358]
push eax
mov dword [ebp - 0x358], edi
mov dword [ebp - 0x354], 0x404
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, dword [ebp + 8]
push ebx
push ecx
push ebx
mov ecx, 0x48ed38
call fcn.0040e5c0
push str.load_plugin...
push 0x190
call fcn.00426560
push eax
call fcn.00426520
add esp, 0xc
push str._app_
lea ecx, [ebp - 0x350]
call fcn.00404150
mov byte [ebp - 4], 0xf
push ebx
lea edx, [ebp - 0x350]
push edx
lea eax, [ebp - 0x32c]
push eax
call fcn.004287d0
add esp, 0xc
mov byte [ebp - 4], 0x10
push eax
call fcn.00406790
mov ecx, eax
call fcn.00406800
test al, al
sete byte [ebp - 0x32d]
mov byte [ebp - 4], 0xf
cmp dword [ebp - 0x314], edi
jb 0x413054
mov ecx, dword [ebp - 0x328]
push ecx
call fcn.00450138
add esp, 4
xor edx, edx
mov dword [ebp - 0x314], esi
mov dword [ebp - 0x318], ebx
mov word [ebp - 0x328], dx
mov byte [ebp - 4], 6
cmp dword [ebp - 0x338], edi
jb 0x413084
mov eax, dword [ebp - 0x34c]
push eax
call fcn.00450138
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x338], esi
mov dword [ebp - 0x33c], ebx
mov word [ebp - 0x34c], cx
cmp byte [ebp - 0x32d], bl
je 0x413108
push str.failed_to_load_plugin.
push 0xc8
call fcn.00426560
push eax
call fcn.00426520
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x90]
call fcn.00402020
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xe4]
call fcn.00402020
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x310]
call fcn.0042daf0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xac]
call fcn.00402020
mov byte [ebp - 4], bl
lea ecx, [ebp - 0xc8]
call fcn.00402020
jmp 0x412f7c
push str.checking_time_dog...
push 0x190
call fcn.00426560
push eax
call fcn.00426520
add esp, 0xc
call fcn.00414290
test eax, eax
je 0x413236
push str.time_dog_found.
push 0x190
call fcn.00426560
push eax
call fcn.00426520
push 0x64
lea edx, [ebp - 0x74]
push ebx
push edx
call fcn.00451390
lea eax, [ebp - 0x74]
push eax
call fcn.004141f0
add esp, 0x1c
test eax, eax
je 0x4131a7
lea ecx, [ebp - 0x74]
push ecx
lea ecx, [ebp - 0x358]
call fcn.00406d30
mov byte [ebp - 4], 0x11
mov eax, dword [eax]
push eax
push str.time_dog_no_:__s
push 0x190
call fcn.00426560
push eax
call fcn.00426520
add esp, 0x10
mov byte [ebp - 4], 6
cmp byte [ebp - 0x354], bl
je 0x4131a7
mov edx, dword [ebp - 0x358]
push edx
call fcn.00450138
add esp, 4
lea eax, [ebp - 0x320]
push eax
call fcn.00413fb0
add esp, 4
test eax, eax
je 0x41324e
movzx ecx, word [ebp - 0x314]
movzx edx, word [ebp - 0x316]
movzx eax, word [ebp - 0x318]
push ecx
movzx ecx, word [ebp - 0x31a]
push edx
movzx edx, word [ebp - 0x31e]
push eax
movzx eax, word [ebp - 0x320]
push ecx
push edx
push eax
push str.time_is_:__04d__02d__02d__02d:_02d:_02d
push 0x190
call fcn.00426560
push eax
call fcn.00426520
add esp, 0x24
lea ecx, [ebp - 0x358]
push ecx
lea edx, [ebp - 0x320]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantTimeToSystemTime]
test eax, eax
je 0x41324e
fld qword [ebp - 0x358]
sub esp, 8
mov ecx, 0x48ecf8
fstp qword [esp]
call fcn.0042c910
jmp 0x41324e
push str.dog_not_exists.
push 0x190
call fcn.00426560
push eax
call fcn.00426520
add esp, 0xc
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
push eax
push ecx
call fcn.00412840
add esp, 8
mov esi, eax
call fcn.00413f80
mov ecx, 0x48ed38
call fcn.004113b0
call dword [sym.imp.ole32.dll_CoUninitialize]
push 0x4741a4
push 0x190
call fcn.00426560
push eax
call fcn.00426520
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x90]
call fcn.00402020
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xe4]
call fcn.00402020
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x310]
call fcn.0042daf0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xac]
call fcn.00402020
mov byte [ebp - 4], bl
lea ecx, [ebp - 0xc8]
call fcn.00402020
mov dword [ebp - 4], 0xffffffff
mov edi, dword [ebp - 0x334]
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
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.0045075f
mov esp, ebp
pop ebp
ret 0x10