Function at 0x40d000
Capabilities:
Hide graphical window
Terminate process

Disassembly:
sub esp, 0xa90
mov ecx, 0x80
lea eax, [esp + 0x488]
lea edx, [esp]
push ebx
push ebp
mov ebp, dword [esp + 0xa9c]
push esi
mov esi, dword [esp + 0xaa8]
push edi
lea edi, [esp + 0x6a0]
mov dword [0x517750], ebp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x30]
push eax
push ecx
lea eax, [esp + 0x6a8]
push edx
push eax
call fcn.00423ea0
call fcn.004240e0
fstp qword [0x5185d0]
push 0x104
push 0x431b70
push 0x5185d8
call fcn.00423f90
mov eax, dword [esp + 0x2c]
mov ebx, 1
add esp, 0x1c
cmp eax, ebx
jle 0x40d0a3
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
xor ecx, ecx
push 0x104
mov cx, word [edx]
push eax
sub ecx, 0x30
push 0x443c18
mov dword [0x517970], ecx
call fcn.00423f90
add esp, 0xc
cmp dword [esp + 0x10], 2
jle 0x40d140
mov ecx, dword [esp + 0x38]
push 0x104
push ecx
push 0x5187e0
call fcn.00423f90
push 0x20
lea edx, [esp + 0x68]
push 0x3a
push edx
push 0x5187e0
call fcn.00423d90
mov esi, eax
lea eax, [esp + 0x74]
push eax
call fcn.00425450
add esp, 0x20
test eax, eax
jne 0x40d0ff
lea ecx, [esp + 0x58]
push 0x431b5c
push ecx
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
test eax, eax
jne 0x40d140
mov edi, dword [sym.imp.MSVCRT.dll__wtoi]
push esi
call edi
add esp, 4
test eax, eax
je 0x40d11d
push esi
call edi
add esp, 4
mov word [0x50dd58], ax
jmp 0x40d126
mov word [0x50dd58], 0x7919
push 0x20
lea edx, [esp + 0x5c]
push 0x50dd5a
push edx
call fcn.00425420
add esp, 0xc
mov dword [0x5189f0], ebx
cmp dword [esp + 0x10], 3
jle 0x40d15e
mov eax, dword [esp + 0x3c]
push 0x104
push eax
push 0x5185d8
call fcn.00423f90
add esp, 0xc
mov eax, dword [0x517970]
cmp eax, ebx
jl 0x40d16c
cmp eax, 0xa
jle 0x40d172
mov dword [0x517970], ebx
mov ecx, 0x10
xor eax, eax
mov edi, 0x443bbc
rep stosd dword es:[edi], eax
call fcn.00425fbe
xor esi, esi
mov word [0x5189f4], ax
cmp ax, si
jle 0x40d1df
push eax
push ebx
push 2
push 7
push 0x443bd8
push 0x3c6205
call fcn.004262d1
mov cx, word [0x5189f4]
push ecx
push ebx
push 0x443bd8
push 0x3c6205
call fcn.00426671
mov dx, word [0x5189f4]
push edx
push ebx
push 0x3c6205
call fcn.004266e0
mov dword [0x443be4], eax
mov ax, word [0x5189f4]
jmp 0x40d1e9
mov dword [0x443be4], 0x5f0c7fdf
mov ecx, dword [0x5189f0]
mov ebx, dword [sym.imp.MSVCRT.dll_swprintf]
cmp ecx, esi
je 0x40d271
xor ecx, ecx
cmp ax, si
setle cl
mov edi, 0x12d
push 4
add ecx, edi
push str.Info
push 0x5185d8
mov dword [0x5189f8], ecx
call dword [sym.imp.MSVCRT.dll__wcsnicmp]
add esp, 0xc
test eax, eax
mov eax, dword [0x5189f8]
jne 0x40d251
cmp eax, edi
mov eax, 0x431b48
je 0x40d23a
mov eax, str.OCM_Viewer
push str.Info
push eax
push str._s:_s
push 0x5185d8
call ebx
add esp, 0x10
jmp 0x40d292
cmp eax, edi
mov eax, 0x431b48
je 0x40d25f
mov eax, str.OCM_Viewer
push eax
push 0x430d58
push 0x5185d8
call ebx
add esp, 0xc
jmp 0x40d292
push 0x104
push 0x431b70
push 0x5185d8
call fcn.00423f90
add esp, 0xc
mov dword [0x5189f8], 0x12c
cmp dword [esp + 0x10], 1
jne 0x40d368
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
cmp eax, 1
jae 0x40d368
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x9a]
mov word [esp + 0x98], si
rep stosd dword es:[edi], eax
mov ecx, dword [0x5185d0]
lea edx, [esp + 0x98]
stosw word es:[edi], ax
mov eax, dword [0x5185d4]
push eax
push ecx
push str.Build_date:__.0f_r_n
push edx
call ebx
lea eax, [esp + 0xa8]
lea ecx, [esp + 0xa8]
push eax
push str._sOCM_with_key_hook_r_n
push ecx
call ebx
lea edx, [esp + 0xb4]
lea eax, [esp + 0xb4]
push edx
push str._sRelease_version_r_n
push eax
call ebx
add esp, 0x28
call fcn.00425fbe
test ax, ax
je 0x40d346
mov eax, dword [0x443bdc]
lea ecx, [esp + 0x98]
push eax
push eax
push ecx
lea edx, [esp + 0xa4]
push str._sDongle_type:_u__OIK_enable:_u_r_n
push edx
call ebx
add esp, 0x14
mov ecx, dword [0x518530]
push esi
lea eax, [esp + 0x9c]
push str.OCM_ECM_Properties:
push eax
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
push esi
call dword [sym.imp.MSVCRT.dll_exit]
mov edi, dword [sym.imp.USER32.dll_LoadIconW]
push 0x7f00
push esi
mov dword [0x517668], 0xb
mov dword [0x51766c], 0x40d510
mov dword [0x517670], esi
mov dword [0x517674], esi
mov dword [0x517678], ebp
call edi
push 0x7f00
push esi
mov dword [0x51767c], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
mov ebx, dword [sym.imp.GDI32.dll_GetStockObject]
push esi
mov dword [0x517680], eax
call ebx
mov dword [0x517688], esi
mov esi, dword [sym.imp.USER32.dll_RegisterClassW]
push 0x517668
mov dword [0x517684], eax
mov dword [0x51768c], 0x5185d8
call esi
push 0x69
push ebp
mov dword [0x517668], 3
mov dword [0x51766c], 0x40bd00
call edi
push 5
mov dword [0x51767c], eax
mov dword [0x517674], 0
mov dword [0x51768c], 0x4319c4
call ebx
push 0x517668
mov dword [0x517684], eax
call esi
push 0x517668
call esi
push 0
push ebp
push 0
push 0
push connect
push connect
push connect
push connect
push 0x2cf0000
push 0x5185d8
push 0x5185d8
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 0x431b70
push 0x5185d8
mov dword [0x443bfc], eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x40d47f
mov edx, dword [0x443bfc]
push 7
push edx
jmp 0x40d4a9
push str.Info
push 0x5185d8
call dword [sym.imp.MSVCRT.dll_wcsstr]
add esp, 8
test eax, eax
je 0x40d4a0
mov eax, dword [0x443bfc]
push 1
push eax
jmp 0x40d4a9
mov ecx, dword [0x443bfc]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [0x443bfc]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
push 0
push 0
lea eax, [esp + 0x1c]
push 0
push eax
call esi
test eax, eax
je 0x40d4fe
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
lea ecx, [esp + 0x14]
push ecx
call edi
lea edx, [esp + 0x14]
push edx
call ebx
push 0
push 0
lea eax, [esp + 0x1c]
push 0
push eax
call esi
test eax, eax
jne 0x40d4df
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa90
ret 0x10