Function at 0x530f10
Capabilities:
Create thread

Disassembly:
sub esp, 0x3ec
mov eax, dword [0x6aae14]
xor eax, esp
mov dword [esp + 0x3e8], eax
cmp dword [0x753b60], 0
push esi
mov esi, dword [esp + 0x3f4]
jne 0x530faf
push str.LOGFILE_MUTEX
push 0
push 0x753b60
call fcn.005093e0
add esp, 0xc
test eax, eax
je 0x530f56
cmp dword [0x753b60], 0
jne 0x530faf
lea eax, [esp + 4]
push 0x3e7
push eax
call fcn.004d8c20
lea ecx, [esp + 0xc]
push 0
push ecx
call fcn.00530580
push str.LOGFILE_MUTEX
lea edx, [esp + 0x18]
push str.ERROR_____s_Unable_to_Create_Mutex_reason_above
push edx
call fcn.005dfb23
lea eax, [esp + 0x20]
push 0
push eax
call fcn.00530580
add esp, 0x24
mov eax, 0x80004005
pop esi
mov ecx, dword [esp + 0x3e8]
xor ecx, esp
call fcn.005dfbbe
add esp, 0x3ec
ret
push 1
push str.Initializing...__MSV_Initialize_msvint.dll_
call fcn.00530580
push esi
call dword [0x753b68]
mov esi, eax
add esp, 0xc
test esi, esi
jge 0x531083
push 0
push str.ERROR____MSV_Initialize_Failed...
call fcn.00530580
add esp, 8
cmp esi, 0x80040266
je 0x530ff1
mov eax, dword [0x753b6c]
test eax, eax
je 0x530ff1
call eax
cmp dword [0x753b60], 0
je 0x53106b
push 0x753b60
call fcn.004e33b0
add esp, 4
test eax, eax
jne 0x531061
lea ecx, [esp + 4]
push 0x3e7
push ecx
call fcn.004d8c20
lea edx, [esp + 0xc]
push 0
push edx
call fcn.00530580
push str.LOGFILE_MUTEX
lea eax, [esp + 0x18]
push str.ERROR_____s_Unable_to_DestroyMutex_Mutex_reason_above
push eax
call fcn.005dfb23
lea ecx, [esp + 0x20]
push 0
push ecx
call fcn.00530580
add esp, 0x24
mov eax, esi
pop esi
mov ecx, dword [esp + 0x3e8]
xor ecx, esp
call fcn.005dfbbe
add esp, 0x3ec
ret
mov dword [0x753b60], 0
mov eax, esi
pop esi
mov ecx, dword [esp + 0x3e8]
xor ecx, esp
call fcn.005dfbbe
add esp, 0x3ec
ret
push 1
push str.MSV_Initalize_Success
call fcn.00530580
push 1
push str.Function_MS_InitializeIPCLayer_Calling...__MS_InitializeIPCLayerEx_ipcsrvr.dll_
call fcn.00530580
mov edx, dword [0x753b64]
push 0
push 0
push 0
push edx
call dword [0x753b74]
add esp, 0x20
cmp eax, 0xe
ja case.0x5310c1.1
movzx ecx, byte [eax + 0x5312d8]
jmp dword [ecx*4 + 0x5312c4]
push 1
push str.MS_InitializeIPCLayer_Called_Successfully
call fcn.00530580
add esp, 8
cmp dword [esp + 0x3f8], 0
jne 0x531128
cmp dword [0x753a48], 0
jne 0x531101
push 0
push 1
push str.MSIPCSRV_Active
push 1
push 0
call fcn.00507920
mov dword [0x753a48], eax
call fcn.00530840
test eax, eax
je 0x531128
lea edx, [esp + 4]
push str._IPCSRVR_STARTED__Event_has_Set.
push edx
call fcn.005dfb23
lea eax, [esp + 0xc]
push 1
push eax
call fcn.00530580
add esp, 0x10
push 0
push 1
push 0
call fcn.004e51b0
cmp dword [esp + 0x3fc], 1
push 0
jne 0x5312a4
push 0
push fcn.00530d90
call fcn.005e07ac
add esp, 0xc
xor eax, eax
pop esi
mov ecx, dword [esp + 0x3e8]
xor ecx, esp
call fcn.005dfbbe
add esp, 0x3ec
ret
push 0xc
call fcn.00529790
push str.MS_InitializeIPCLayer
lea edx, [esp + 0xc]
push str.ERROR_____s_Function_Fails_return_MWIPCS_ERROR_UNSUPPORTED_Reason_above
push edx
mov esi, eax
call fcn.005dfb23
push 0
lea eax, [esp + 0x18]
push eax
call fcn.00530580
add esp, 0x18
test esi, esi
je 0x5310d7
mov eax, dword [0x753b6c]
test eax, eax
je 0x5311a9
call eax
cmp dword [0x753b60], 0
je 0x53106b
push 0x753b60
call fcn.004e33b0
add esp, 4
test eax, eax
jne 0x531061
lea ecx, [esp + 4]
push 0x3e7
push ecx
call fcn.004d8c20
lea edx, [esp + 0xc]
push 0
push edx
call fcn.00530580
push str.LOGFILE_MUTEX
lea eax, [esp + 0x18]
push str.ERROR_____s_Unable_to_DestroyMutex_Mutex_reason_above
push eax
call fcn.005dfb23
lea ecx, [esp + 0x20]
push 0
push ecx
call fcn.00530580
add esp, 0x24
mov eax, esi
pop esi
mov ecx, dword [esp + 0x3e8]
xor ecx, esp
call fcn.005dfbbe
add esp, 0x3ec
ret
push 0xe
call fcn.00529790
lea ecx, [esp + 8]
push str.WARNING____Server_is_Already_Running...._Exiting_Now.
push ecx
mov esi, eax
call fcn.005dfb23
lea edx, [esp + 0x10]
push 0
push edx
call fcn.00530580
add esp, 0x14
jmp 0x531196
push 0xd
call fcn.00529790
push str.MS_InitializeIPCLayer
mov esi, eax
lea eax, [esp + 0xc]
push str.ERROR_____s_Function_Fails_return_MWIPCS_ERROR_SERVERINIT_Reason_above
push eax
call fcn.005dfb23
push 0
lea ecx, [esp + 0x18]
push ecx
jmp 0x53118e
push eax
push str.MS_InitializeIPCLayer
lea edx, [esp + 0xc]
push str.ERROR_____s_Function_Fails_return__UNKNOWN_._Return_code__x
push edx
call fcn.005dfb23
lea eax, [esp + 0x14]
push 0
push eax
call fcn.00530580
add esp, 0x18
mov esi, 0x80004005
jmp 0x53119e
call fcn.00530d90
mov ecx, dword [esp + 0x3f0]
add esp, 4
pop esi
xor ecx, esp
xor eax, eax
call fcn.005dfbbe
add esp, 0x3ec
ret