Function at 0x4702d0
Capabilities:
Hide graphical window
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xe8
mov eax, dword [0x6efb00]
xor eax, esp
mov dword [esp + 0xe4], eax
mov eax, dword [ebp + 8]
push esi
push edi
push 0
mov dword [esp + 0x90], eax
mov dword [esp + 0x24], 0x30
mov dword [esp + 0x28], 0x40
mov dword [esp + 0x2c], 0x470c00
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [esp + 0x34], eax
xorps xmm0, xmm0
lea eax, [esp + 0x20]
mov dword [esp + 0x48], str.MEGASWORD
push eax
movups xmmword [esp + 0x3c], xmm0
mov dword [esp + 0x50], 0
call dword [sym.imp.USER32.dll_RegisterClassExW]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 1
call esi
cdq
sub eax, edx
sar eax, 1
push 0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
subss xmm0, dword [0x6e6abc]
cvttss2si edi, xmm0
call esi
cdq
sub eax, edx
sar eax, 1
push 0
push dword [esp + 0x90]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
push 0
push 0
push 0x1a9
push 0x271
push edi
subss xmm0, dword [0x6e6acc]
cvttss2si eax, xmm0
push eax
push bind
push str.MEGASWORD
push dword [esp + 0x70]
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 0xffffffffffffffec
push eax
mov dword [0x7caab8], eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
or eax, 0x80000
push eax
push 0xffffffffffffffec
push dword [0x7caab8]
call dword [sym.imp.USER32.dll_SetWindowLongA]
push 2
push 0xff
push 0
push dword [0x7caab8]
call dword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
movaps xmm0, xmmword [0x6e6b30]
lea eax, [esp + 0xc0]
push eax
push dword [0x7caab8]
movups xmmword [esp + 0xc8], xmm0
call dword [sym.imp.dwmapi.dll_DwmExtendFrameIntoClientArea]
push 0x7caabc
push dword [0x7caab8]
xorps xmm0, xmm0
movups xmmword [0x7caabc], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
xorps xmm0, xmm0
mov dword [esp + 0x78], 2
movlpd qword [esp + 0x64], xmm0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov eax, dword [0x7caab8]
push 0x7caad4
mov esi, dword [sym.imp.d3d11.dll_D3D11CreateDeviceAndSwapChain]
mov dword [esp + 0x80], eax
lea eax, [esp + 0x90]
push eax
push 0x7caad8
push 0x7caadc
lea eax, [esp + 0x60]
mov dword [esp + 0x70], 0x1c
push eax
push 7
push 2
lea eax, [esp + 0xec]
mov dword [esp + 0x74], 0x3c
push eax
push 0
push 0
push 1
push 0
mov dword [esp + 0x8c], 1
mov dword [esp + 0xb8], 2
mov dword [esp + 0xa4], 0x20
mov dword [esp + 0x9c], 1
mov dword [esp + 0xa0], 0
mov dword [esp + 0xb0], 1
mov dword [esp + 0xb4], 0
mov dword [esp + 0x100], 0xb000
mov dword [esp + 0x104], 0xa000
call esi
cmp eax, 0x887a0004
jne 0x470540
push 0x7caad4
lea eax, [esp + 0x90]
push eax
push 0x7caad8
push 0x7caadc
lea eax, [esp + 0x60]
push eax
push 7
push 2
lea eax, [esp + 0xec]
push eax
push 0
push 0
push 5
push 0
call esi
test eax, eax
jne 0x470b56
mov eax, dword [0x7caadc]
lea edx, [esp + 0x14]
push edx
push 0x6e55d4
push 0
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
mov eax, dword [0x7caad8]
push 0x7caae0
push 0
push dword [esp + 0x1c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
mov eax, dword [esp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push 0xa
push dword [0x7caab8]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x7caab8]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov esi, dword [0x7ca4d8]
test esi, esi
je 0x4705a9
inc dword [esi + 0xb4]
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
push 0x5c48
call edi
add esp, 4
test eax, eax
je 0x4705c8
push 0
mov ecx, eax
call fcn.00447070
jmp 0x4705ca
xor eax, eax
mov dword [0x7ca4d8], eax
call fcn.0044a4e0
test esi, esi
je 0x4705e0
mov dword [0x7ca4d8], esi
jmp 0x4705e6
mov esi, dword [0x7ca4d8]
mov dword [esi + 0x20], 0
call fcn.00475b50
xor ecx, ecx
call fcn.0045f170
mov eax, dword [0x7caab8]
mov esi, dword [0x7ca4d8]
mov dword [esp + 0x8c], eax
lea eax, [esp + 0xb8]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x470745
lea eax, [esp + 0xd8]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x470745
mov eax, dword [0x7ca4d8]
test eax, eax
je 0x470646
inc dword [eax + 0xb4]
push 0x38
call edi
mov edi, eax
add esp, 4
test edi, edi
je 0x470662
push 0x38
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
jmp 0x470664
xor edi, edi
or dword [esi + 0xc], 6
mov edx, dword [esp + 0x8c]
mov dword [esi + 0x78], edi
mov dword [esi + 0x70], 0x6e538c
xor esi, esi
mov dword [edi], edx
mov eax, dword [esp + 0xb8]
mov ecx, dword [esp + 0xbc]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], ecx
mov eax, dword [esp + 0xd8]
mov ecx, dword [esp + 0xdc]
mov dword [edi + 0x10], eax
mov eax, dword [0x7ca4d8]
mov dword [edi + 0x14], ecx
mov dword [edi + 0x20], 9
mov dword [esp + 0x90], str.xinput1_4.dll
mov eax, dword [eax + 0x47e8]
mov dword [esp + 0x94], str.xinput1_3.dll
mov dword [esp + 0x98], str.xinput9_1_0.dll
mov dword [esp + 0x9c], str.xinput1_2.dll
mov eax, dword [eax]
mov dword [esp + 0xa0], str.xinput1_1.dll
mov dword [eax + 0x24], edx
mov byte [edi + 0x25], 1
nop word [eax + eax]
push dword [esp + esi*4 + 0x90]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esp + 0x8c], eax
test eax, eax
jne 0x470720
inc esi
cmp esi, 5
jl 0x470700
jmp 0x470745
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.XInputGetCapabilities
push eax
mov dword [edi + 0x28], eax
call esi
push str.XInputGetState
push dword [esp + 0x90]
mov dword [edi + 0x2c], eax
call esi
mov dword [edi + 0x30], eax
mov eax, dword [0x7caad4]
mov edi, dword [0x7ca4d8]
mov dword [esp + 0xd0], eax
mov eax, dword [0x7caad8]
mov dword [esp + 0x14], eax
test edi, edi
je 0x47076a
inc dword [edi + 0xb4]
push 0x40
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
je 0x4707ec
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0x1388
mov dword [esi + 0x3c], 0x2710
jmp 0x4707ee
xor esi, esi
or dword [edi + 0xc], 8
lea ecx, [esp + 0x18]
mov dword [edi + 0x7c], esi
mov dword [edi + 0x74], str.imgui_impl_dx11
mov edi, dword [esp + 0x14]
push ecx
push 0x6e535c
push edi
mov eax, dword [edi]
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x98], 0
call dword [eax]
test eax, eax
jne 0x470877
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push edx
push 0x6e536c
push ecx
mov eax, dword [ecx]
call dword [eax + 0x18]
test eax, eax
jne 0x470877
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x8c]
push edx
push 0x6e537c
push ecx
mov eax, dword [ecx]
call dword [eax + 0x18]
test eax, eax
jne 0x470877
mov eax, dword [esp + 0xd0]
mov dword [esi], edi
mov dword [esi + 4], eax
mov eax, dword [esp + 0x8c]
mov dword [esi + 8], eax
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x470885
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x470893
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [esi]
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
mov eax, dword [esi + 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
xor al, al
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov dword [esp + 0x14], eax
push 1
push 0
push 0
xorps xmm0, xmm0
mov dword [esp + 0xb4], 0
push 0
lea eax, [esp + 0xa0]
movaps xmmword [esp + 0xa0], xmm0
push eax
movq qword [esp + 0xb4], xmm0
call esi
test eax, eax
je 0x470942
nop dword [eax + eax]
lea eax, [esp + 0x90]
push eax
call edi
lea eax, [esp + 0x90]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
mov eax, dword [esp + 0x14]
mov ecx, 1
cmp dword [esp + 0x94], 0x12
push ecx
movzx eax, al
push 0
cmove eax, ecx
push 0
mov dword [esp + 0x20], eax
lea eax, [esp + 0x9c]
push 0
push eax
call esi
test eax, eax
jne 0x4708f0
cmp byte [esp + 0x14], al
jne 0x4709e4
mov eax, dword [0x7ca4d8]
test eax, eax
je 0x470950
mov eax, dword [eax + 0x7c]
jmp 0x470952
xor eax, eax
cmp dword [eax + 0x24], 0
jne 0x47095d
call fcn.00468ca0
call fcn.00469a60
call fcn.0044c740
mov ecx, 0x7ca4d5
call fcn.004760d0
call fcn.0044e6f0
mov eax, dword [0x7caad4]
xorps xmm0, xmm0
push 0
push 0x7caae0
movups xmmword [esp + 0xe0], xmm0
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0x84]
mov eax, dword [0x7caad4]
lea edx, [esp + 0xd8]
push edx
push dword [0x7caae0]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc8]
mov eax, dword [0x7ca4d8]
xor ecx, ecx
mov eax, dword [eax + 0x47e8]
mov eax, dword [eax]
add eax, 0x38
cmp byte [eax], cl
cmovne ecx, eax
call fcn.004683f0
mov eax, dword [0x7caadc]
push 0
push 1
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
jmp 0x4708b6
mov esi, dword [0x7ca4d8]
mov dword [0x7ca4d8], esi
call fcn.0044a900
mov dword [0x7ca4d8], 0
test esi, esi
je 0x470a23
mov ecx, esi
call fcn.0045e3f0
mov eax, dword [0x7ca4d8]
test eax, eax
je 0x470a19
dec dword [eax + 0xb4]
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov ecx, 0x7ca510
call fcn.00462cf0
mov edi, dword [0x7ca4d8]
test edi, edi
je 0x470a3c
mov esi, dword [edi + 0x7c]
jmp 0x470a3e
xor esi, esi
call fcn.004691b0
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x470a50
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi]
test ecx, ecx
je 0x470a5c
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x470a69
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [0x7ca4d8]
mov dword [edi + 0x74], 0
mov dword [edi + 0x7c], 0
test eax, eax
je 0x470a86
dec dword [eax + 0xb4]
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
push esi
call edi
mov eax, dword [0x7ca4d8]
add esp, 4
test eax, eax
je 0x470aa0
mov esi, dword [eax + 0x78]
jmp 0x470aa2
xor esi, esi
mov edx, dword [esi + 0x28]
lea ecx, [eax + 8]
mov dword [esp + 0xd0], ecx
test edx, edx
je 0x470ac6
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [0x7ca4d8]
mov ecx, dword [esp + 0xd0]
mov dword [ecx + 0x68], 0
mov dword [ecx + 0x70], 0
test eax, eax
je 0x470ade
dec dword [eax + 0xb4]
push esi
call edi
mov esi, dword [0x7ca4d8]
add esp, 4
mov dword [0x7ca4d8], esi
call fcn.0044a900
mov dword [0x7ca4d8], 0
test esi, esi
je 0x470b1f
mov ecx, esi
call fcn.0045e3f0
mov eax, dword [0x7ca4d8]
test eax, eax
je 0x470b19
dec dword [eax + 0xb4]
push esi
call edi
add esp, 4
call fcn.00470b90
push dword [0x7caab8]
call dword [sym.imp.USER32.dll_DestroyWindow]
push dword [esp + 0x34]
push dword [esp + 0x4c]
call dword [sym.imp.USER32.dll_UnregisterClassW]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0xe4]
xor ecx, esp
call fcn.006193d7
mov esp, ebp
pop ebp
ret 0x10
call fcn.00470b90
push dword [esp + 0x34]
push dword [esp + 0x4c]
call dword [sym.imp.USER32.dll_UnregisterClassW]
mov ecx, dword [esp + 0xec]
mov eax, 1
pop edi
pop esi
xor ecx, esp
call fcn.006193d7
mov esp, ebp
pop ebp
ret 0x10