Function at 0x415420
Capabilities:
Print debug messages

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x444253
push eax
mov dword fs:[0], esp
sub esp, 0x168
push ebx
push ebp
push esi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor ebx, ebx
mov dword [esi + 0x228], eax
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
mov ebp, dword [sym.imp.MSVCRT.dll_fprintf]
cmp eax, ebx
jge 0x41549f
push 0x45437c
push str.csfail.txt
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
add esp, 8
cmp edi, ebx
je 0x41549f
push 0x222
push str.D:workspace2.0SRCccosm_svrmod.cpp
push str.CoInitialize_failed
push str.SUCCEEDED_hr_
push str._s____s____s____d__n
push edi
call ebp
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x1c
lea ecx, [esp + 0x30]
call fcn.00413cf0
push 1
push ebx
lea ecx, [esp + 0x38]
mov dword [esp + 0x188], ebx
call fcn.00413e70
mov eax, dword [esp + 0x30]
push ebx
push ebx
push ebx
push 3
push 4
push ebx
push ebx
push 0xffffffffffffffff
push eax
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
cmp eax, ebx
jge 0x415514
push 0x45437c
push str.csfail.txt
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
add esp, 8
cmp edi, ebx
je 0x415514
push 0x22a
push str.D:workspace2.0SRCccosm_svrmod.cpp
push str.CoInitializeSecurity_failed
push str.SUCCEEDED_hr_
push str._s____s____s____d__n
push edi
call ebp
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x1c
call fcn.0040d1f0
mov ecx, esi
call fcn.00415ff0
test eax, eax
je 0x415986
mov eax, dword [esi + 0x22c]
mov dword [esp + 0x18], ebx
cmp eax, ebx
je 0x415559
call fcn.00415330
mov dword [esp + 0x18], eax
mov eax, dword [0x467b2c]
cmp eax, ebx
je 0x415559
mov esi, dword [esp + 0x18]
cmp esi, ebx
je 0x415980
jmp 0x41596d
push 0x58
call fcn.0041b540
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, ebx
mov byte [esp + 0x180], 1
je 0x41557c
mov ecx, eax
call fcn.00411950
jmp 0x41557e
xor eax, eax
mov ecx, eax
mov byte [esp + 0x180], bl
mov dword [esi + 0x240], eax
call fcn.00411a70
push 0x18
call fcn.0041b540
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, ebx
mov byte [esp + 0x180], 2
je 0x4155ba
push ebx
mov ecx, eax
call fcn.00412ce0
mov dword [esp + 0x10], eax
jmp 0x4155be
mov dword [esp + 0x10], ebx
mov byte [esp + 0x180], bl
call fcn.0040d170
test eax, eax
je 0x4155d8
mov ecx, dword [esp + 0x10]
push ebx
call fcn.0042f0a0
call fcn.004169b0
push 0x18
call fcn.0041b540
mov edi, eax
add esp, 4
mov dword [esp + 0x1c], edi
cmp edi, ebx
mov byte [esp + 0x180], 3
je 0x41561b
mov ecx, edi
call fcn.00441ab0
push 1
push 1
mov ecx, edi
mov byte [esp + 0x188], 4
mov dword [edi], 0x44af9c
call fcn.00441b50
jmp 0x41561d
xor edi, edi
xor ecx, ecx
mov dword [esi + 0x29c], edi
mov dword [esp + 0x24], ecx
lea edi, [esi + 0x25c]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], ecx
mov edx, dword [edi]
mov ecx, edi
mov byte [esp + 0x180], bl
mov dword [esp + 0x1c], edi
call dword [edx + 4]
push 0x30
mov byte [esp + 0x184], 5
call fcn.0041b540
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebx
mov byte [esp + 0x180], 6
je 0x415679
push ebx
mov ecx, eax
call fcn.00417610
jmp 0x41567b
xor eax, eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x180], 5
push ecx
push ebx
push ebx
mov ecx, eax
mov dword [esi + 0x244], eax
call fcn.00417720
mov edx, dword [edi]
mov ecx, edi
mov byte [esp + 0x180], bl
call dword [edx + 8]
mov eax, dword [esi + 0x278]
lea ebp, [esi + 0x278]
mov ecx, ebp
mov dword [esp + 0x14], ebp
call dword [eax + 4]
push 0x30
mov byte [esp + 0x184], 7
call fcn.0041b540
add esp, 4
mov dword [esp + 0x1c], eax
cmp eax, ebx
mov byte [esp + 0x180], 8
je 0x4156e6
push ebx
mov ecx, eax
call fcn.00417610
jmp 0x4156e8
xor eax, eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x180], 7
push ecx
push 2
push ebx
mov ecx, eax
mov dword [esi + 0x248], eax
call fcn.00417720
mov edx, dword [ebp]
mov ecx, ebp
mov byte [esp + 0x180], bl
call dword [edx + 8]
cmp dword [esi + 0x234], ebx
je 0x415763
call fcn.0040b770
push eax
lea ecx, [esp + 0x64]
call fcn.00428790
push ebx
push 0x454528
push str.INSTALL
lea ecx, [esp + 0x6c]
mov byte [esp + 0x18c], 9
call fcn.004288a0
mov ecx, dword [esi + 0x234]
push eax
call fcn.0042f4e0
lea ecx, [esp + 0x60]
mov byte [esp + 0x180], bl
call fcn.004287d0
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.stormliv:StartMoniter__n
call edi
cmp dword [esi + 0x298], ebx
jne 0x415789
push str.bfoptdll.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esi + 0x298], eax
mov eax, dword [esi + 0x298]
cmp eax, ebx
je 0x4157b2
push str.StartMoniter
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x4157ab
push ebx
push ebx
push ebx
call eax
add esp, 0xc
push str.stormliv:StartMoniter_start_success__n
call edi
push ebx
push 0x5265c00
push 1
push ebx
call dword [sym.imp.USER32.dll_SetTimer]
push 1
mov ecx, esi
mov dword [esi + 0x230], eax
call fcn.00416bd0
mov ebp, dword [sym.imp.USER32.dll_GetMessageA]
push ebx
push ebx
lea eax, [esp + 0x4c]
push ebx
push eax
call ebp
test eax, eax
je 0x415815
cmp dword [esp + 0x48], 0x113
je 0x4157fb
lea ecx, [esp + 0x44]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x415807
mov edx, dword [esp + 0x4c]
mov ecx, esi
push edx
call fcn.00415270
push ebx
push ebx
lea eax, [esp + 0x4c]
push ebx
push eax
call ebp
test eax, eax
jne 0x4157e4
cmp dword [esi + 0x298], ebx
je 0x41585d
push str.stormliv:StopMoniter_begin__n
call edi
mov ecx, dword [esi + 0x298]
push str.StopMoniter
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x41583c
call eax
push str.stormliv:StopMoniter_stop_successs__n
call edi
mov edx, dword [esi + 0x298]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push str.stormliv:StopMoniter_stop_successs2__n
mov dword [esi + 0x298], ebx
call edi
push ebx
mov ecx, esi
call fcn.00416bd0
mov ecx, dword [esi + 4]
call fcn.0041ef60
mov ecx, dword [esi + 0x24c]
cmp ecx, ebx
je 0x415883
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 0x24c], ebx
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
je 0x415891
mov edx, dword [ecx]
push 1
call dword [edx]
mov eax, dword [esi + 0x25c]
lea edi, [esi + 0x25c]
mov ecx, edi
mov dword [esp + 0x14], edi
call dword [eax + 4]
mov ecx, dword [esi + 0x248]
mov byte [esp + 0x180], 0xa
cmp ecx, ebx
je 0x4158be
mov edx, dword [ecx]
push 1
call dword [edx]
mov dword [esi + 0x248], ebx
mov eax, dword [edi]
mov ecx, edi
mov byte [esp + 0x180], bl
call dword [eax + 8]
mov edx, dword [esi + 0x278]
lea edi, [esi + 0x278]
mov ecx, edi
mov dword [esp + 0x14], edi
call dword [edx + 4]
mov ecx, dword [esi + 0x244]
mov byte [esp + 0x180], 0xb
cmp ecx, ebx
je 0x4158ff
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 0x244], ebx
mov edx, dword [edi]
mov ecx, edi
mov byte [esp + 0x180], bl
call dword [edx + 8]
mov ecx, dword [esi + 0x240]
cmp ecx, ebx
je 0x415923
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [esi + 0x258]
mov dword [esi + 0x240], ebx
cmp ecx, ebx
je 0x41593f
mov edx, dword [ecx]
push 1
call dword [edx]
mov dword [esi + 0x258], ebx
mov ecx, dword [esi + 0x234]
cmp ecx, ebx
je 0x415965
call fcn.0042f7a0
mov ecx, dword [esi + 0x234]
cmp ecx, ebx
je 0x41595f
mov eax, dword [ecx]
push 1
call dword [eax + 0xc]
mov dword [esi + 0x234], ebx
mov esi, dword [esp + 0x18]
cmp esi, ebx
je 0x415980
push ebx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOverridePredefKey]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [esp + 0x30]
mov dword [esp + 0x180], 0xffffffff
call fcn.00413d10
mov ecx, dword [esp + 0x178]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x174
ret