Function at 0x46a3c0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6718f4
mov eax, dword fs:[0]
push eax
sub esp, 0x1b4
mov eax, dword [0x74b738]
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 dword [ebp - 0x4c], edx
xorps xmm0, xmm0
mov dword [ebp - 0x84], 0x6ebd60
movups xmmword [ebp - 0x80], xmm0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 4], 0
mov ebx, dword [0x758fa0]
add ebx, 0x10
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, dword [0x755f04]
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__recalloc]
push 4
mov dword [ebp - 0x44], eax
mov ecx, dword [esi + 8]
inc ecx
push ecx
push dword [esi]
call edi
add esp, 0xc
test eax, eax
je 0x46a48d
mov dword [esi], eax
mov eax, dword [esi + 8]
push 4
inc eax
push eax
push dword [esi + 4]
call edi
add esp, 0xc
test eax, eax
je 0x46a48d
mov ecx, dword [esi + 8]
mov dword [esi + 4], eax
lea edx, [ecx*4]
mov ecx, dword [esi]
add ecx, edx
je 0x46a47e
mov eax, dword [ebp - 0x44]
mov dword [ecx], eax
mov eax, dword [esi + 4]
add eax, edx
je 0x46a48a
lea ecx, [ebp - 0x84]
mov dword [eax], ecx
inc dword [esi + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x10c], 0
mov dword [ebp - 0x108], eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x104], 0x6ec698
mov dword [ebp - 0x100], 0x6ec68c
mov dword [ebp - 0xf8], 0
mov dword [ebp - 0xf4], 0
call fcn.00452ff0
mov dword [ebp - 0xf8], eax
mov dword [ebp - 0xf0], 0
mov dword [ebp - 0xec], 1
mov dword [ebp - 0x128], 0x6ec6cc
mov dword [ebp - 0x104], 0x6ec6b8
mov dword [ebp - 0x100], 0x6ec6ac
call fcn.004225c0
mov ecx, eax
test ecx, ecx
je 0x46a8e9
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xd0], 0
mov dword [ebp - 0xe4], eax
xorps xmm0, xmm0
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xcc], 0x6eab38
push eax
movups xmmword [ebp - 0xe0], xmm0
mov dword [ebp - 0xb8], 0xffffffff
movups xmmword [ebp - 0xc8], xmm0
mov dword [ebp - 0xb4], 0x6d1848
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xa8], 0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [ebp - 4], 2
lea eax, [ebp - 0x108]
push dword [ebp - 0x4c]
push eax
push 0x74bf08
call fcn.00425ed0
add esp, 8
movzx eax, ax
lea ecx, [ebp - 0x128]
push eax
push 0
push 0
push SysReAllocString
push 0
push 0
push 0
call fcn.00425a50
test eax, eax
jne 0x46a5f5
xor edi, edi
jmp 0x46a88b
call fcn.00465320
cmp dword [eax + 0x34], 0
jne 0x46a649
push dword [ebp - 0x4c]
push dword [ebp - 0x124]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp - 0x124]
call dword [sym.imp.USER32.dll_BringWindowToTop]
mov esi, dword [sym.imp.USER32.dll_SetWindowPos]
push 3
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push dword [ebp - 0x124]
call esi
push 3
push 0
push 0
push 0
push 0
push 0xfffffffffffffffe
push dword [ebp - 0x124]
call esi
call fcn.00465320
mov edx, str.Create_Main_Wnd_and_show
mov ecx, 0x6ebb4c
cmp dword [eax + 0x34], 0
cmove ecx, edx
push ecx
lea ecx, [ebp - 0x48]
call fcn.00441f70
mov byte [ebp - 4], 3
call fcn.00509500
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x46a79f
push 0x24
push str.f:master_luinst_ui_marketinst.cpp
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], al
call fcn.0042a9a0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
push 3
push 0x6d1880
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.0042a9a0
mov byte [ebp - 4], 5
call fcn.00509500
mov edi, eax
lea ecx, [ebp - 0x1c0]
push 0x32
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0042c590
mov esi, eax
mov byte [ebp - 4], 6
mov edx, str._null_
mov ecx, dword [ebp - 0x48]
test ecx, ecx
cmovne edx, ecx
push edx
push esi
call fcn.0043f750
mov eax, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x1c0]
call fcn.00428ee0
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x46a753
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x46a749
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x46a749
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00669e69
add esp, 8
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp edx, 0x10
jb 0x46a79f
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x46a795
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x46a795
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00669e69
add esp, 8
mov edi, dword [sym.imp.USER32.dll_PeekMessageW]
mov ebx, 1
xor esi, esi
nop dword [eax]
test ebx, ebx
je 0x46a7dd
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x68]
push eax
call edi
test eax, eax
jne 0x46a7dd
mov eax, dword [ebp - 0x84]
lea ecx, [ebp - 0x84]
push esi
call dword [eax + 4]
inc esi
test eax, eax
jne 0x46a7b4
xor ebx, ebx
push 0
push 0
push 0
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
cmp eax, 0xffffffff
je 0x46a7b0
test eax, eax
je 0x46a864
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebp - 0x84]
lea ecx, [ebp - 0x84]
call dword [eax]
test eax, eax
jne 0x46a820
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
mov eax, dword [ebp - 0x64]
cmp eax, 0x118
ja 0x46a838
je 0x46a854
cmp eax, 0xf
je 0x46a854
cmp eax, 0xa0
jmp 0x46a83d
cmp eax, 0x200
je 0x46a854
mov ecx, 1
xor eax, eax
test ecx, ecx
mov ebx, ecx
cmove eax, esi
mov esi, eax
jmp 0x46a7b0
xor ecx, ecx
xor eax, eax
test ecx, ecx
cmove eax, esi
mov esi, eax
jmp 0x46a7b0
mov edi, dword [ebp - 0x60]
call fcn.0046c6f0
mov byte [ebp - 4], 2
or eax, 0xffffffff
mov edx, dword [ebp - 0x48]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46a88b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x128]
call fcn.004826d0
mov eax, dword [ebp - 0x74]
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test eax, eax
je 0x46a8b0
push eax
call esi
add esp, 4
mov dword [ebp - 0x74], 0
mov ecx, dword [ebp - 0x80]
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
test ecx, ecx
je 0x46a8cb
push ecx
call esi
add esp, 4
mov eax, edi
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.00669a1e
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00422220
int3