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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4419b3
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x128
mov eax, dword [0x44b040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x44b4b8]
test eax, eax
je 0x43f995
mov eax, dword [eax + 0x74]
test eax, eax
je 0x43f995
mov byte [eax + 0x26], 1
xor edx, edx
push ecx
lea ecx, [edx + 0xa]
call fcn.00437070
mov edi, dword fs:[0x2c]
add esp, 4
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x43fa0d
mov ecx, dword [edi]
mov eax, dword [0x44b500]
cmp eax, dword [ecx + 4]
jle 0x43f9f2
push 0x44b500
call fcn.0044042b
add esp, 4
cmp dword [0x44b500], 0xffffffff
jne 0x43f9f2
push str.user32.dll
call esi
push 0x44b500
mov dword [0x44b4f4], eax
call fcn.004403da
add esp, 4
push str.SetThreadDpiAwarenessContext
push dword [0x44b4f4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x43fa0d
push 0xfffffffffffffffc
call eax
jmp 0x43fa81
mov edx, 3
push ecx
lea ecx, [edx + 3]
call fcn.00437070
add esp, 4
test eax, eax
je 0x43fa7b
mov ecx, dword [edi]
mov eax, dword [0x44b508]
cmp eax, dword [ecx + 4]
jle 0x43fa60
push 0x44b508
call fcn.0044042b
add esp, 4
cmp dword [0x44b508], 0xffffffff
jne 0x43fa60
push str.shcore.dll
call esi
push 0x44b508
mov dword [0x44b4f8], eax
call fcn.004403da
add esp, 4
push str.SetProcessDpiAwareness
push dword [0x44b4f8]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x43fa7b
push 2
call eax
jmp 0x43fa81
call dword [sym.imp.USER32.dll_SetProcessDPIAware]
push 0
mov dword [ebp - 0xb0], 0x30
mov dword [ebp - 0xac], 0x40
mov dword [ebp - 0xa8], 0x43f7a0
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0xa0], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x9c], eax
xorps xmm0, xmm0
lea eax, [ebp - 0xb0]
mov dword [ebp - 0x88], 0x447818
push eax
movups xmmword [ebp - 0x98], xmm0
mov dword [ebp - 0x84], 0
call dword [sym.imp.USER32.dll_RegisterClassExW]
push 0
push dword [ebp - 0x9c]
push 0
push 0
push 0x32
push 0x32
push 0x64
push 0x64
push 0xcf0000
push 0x447818
push dword [ebp - 0x88]
push 8
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 0x44b4c8
mov esi, eax
mov dword [ebp - 0xc4], 2
lea eax, [ebp - 0x30]
mov dword [ebp - 0x138], esi
push eax
push 0x44b4cc
push 0x44b4c0
lea eax, [ebp - 0xec]
mov dword [ebp - 0xec], 0
push eax
push 7
push 2
lea eax, [ebp - 0x1c]
mov dword [ebp - 0xe8], 0
push eax
push 0
push 0
push 1
xorps xmm0, xmm0
mov dword [ebp - 0xdc], 0x1c
push 0
movlpd qword [ebp - 0xd8], xmm0
mov dword [ebp - 0xe4], 0x3c
mov dword [ebp - 0xe0], 1
mov dword [ebp - 0xb4], 2
mov dword [ebp - 0xc8], 0x20
mov dword [ebp - 0xc0], esi
mov dword [ebp - 0xd0], 1
mov dword [ebp - 0xcc], 0
mov dword [ebp - 0xbc], 1
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0x1c], 0xb000
mov dword [ebp - 0x18], 0xa000
call dword [sym.imp.d3d11.dll_D3D11CreateDeviceAndSwapChain]
test eax, eax
je 0x43fbf5
call fcn.0043f730
jmp 0x440226
mov eax, dword [0x44b4c0]
lea edx, [ebp - 0x78]
push edx
push 0x447540
push 0
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
mov edx, dword [ebp - 0x78]
test edx, edx
je 0x43fc2e
mov eax, dword [0x44b4cc]
push 0x44b4c4
push 0
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
mov eax, dword [ebp - 0x78]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov edi, dword [0x44b4b8]
mov dword [ebp - 0x30], edi
test edi, edi
je 0x43fc51
inc dword [edi + 0xb0]
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
push 0x6218
call esi
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x12d]
add esp, 4
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x12c], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x43fc89
push 0
mov ecx, eax
call fcn.00403320
jmp 0x43fc8b
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x44b4b8], eax
call fcn.0040a270
test edi, edi
je 0x43fca8
mov dword [0x44b4b8], edi
jmp 0x43fcb1
mov edi, dword [0x44b4b8]
mov dword [ebp - 0x30], edi
or dword [edi + 8], 0x401
mov dword [edi + 0x3864], 0x40800000
mov dword [edi + 0x3948], 0x3f800000
mov edi, dword [ebp - 0x138]
push 2
push edi
call dword [sym.imp.USER32.dll_MonitorFromWindow]
xorps xmm0, xmm0
lea ecx, [ebp - 0x74]
push ecx
movups xmmword [ebp - 0x74], xmm0
push eax
movups xmmword [ebp - 0x64], xmm0
mov dword [ebp - 0x74], 0x28
movq qword [ebp - 0x54], xmm0
call dword [sym.imp.USER32.dll_GetMonitorInfoW]
mov eax, dword [ebp - 0x64]
sub eax, dword [ebp - 0x6c]
cmp eax, 0x438
jle 0x43fd77
push 0x78
lea eax, [ebp - 0x128]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [0x44b4b8]
add esp, 0xc
mov eax, 0xffff
mov byte [ebp - 0x120], 1
mov word [ebp - 0xe0], ax
lea eax, [ebp - 0x128]
mov dword [ebp - 0x114], 3
mov ecx, dword [ecx + 0x40]
push eax
mov dword [ebp - 0x110], 1
mov dword [ebp - 0xf0], 0x7f7fffff
mov dword [ebp - 0xe4], 0x3f800000
mov dword [ebp - 0x118], 0x41d00000
call fcn.0042fb70
mov eax, dword [0x44b4b8]
mov ecx, edi
mov dword [eax + 0x20], 0
call fcn.00435090
mov eax, dword [0x44b4c8]
mov edi, dword [0x44b4b8]
mov dword [ebp - 0x12c], eax
mov eax, dword [0x44b4cc]
mov dword [ebp - 0x78], eax
test edi, edi
je 0x43fdad
inc dword [edi + 0xb0]
push 0x40
call esi
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
test esi, esi
je 0x43fdda
push 0x40
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esi + 0x38], 0x1388
mov dword [esi + 0x3c], 0x2710
jmp 0x43fddc
xor esi, esi
mov ecx, dword [ebp - 0x78]
lea edx, [ebp - 0x7c]
or dword [edi + 0xc], 0x1008
push edx
mov dword [edi + 0x78], esi
mov dword [edi + 0x70], str.imgui_impl_dx11
mov eax, dword [ecx]
push 0x447520
push ecx
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x18], 0
call dword [eax]
test eax, eax
jne 0x43fe57
mov eax, dword [ebp - 0x7c]
lea edx, [ebp - 0x80]
push edx
push 0x447530
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
test eax, eax
jne 0x43fe57
mov eax, dword [ebp - 0x80]
lea edx, [ebp - 0x18]
push edx
push 0x447550
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
test eax, eax
jne 0x43fe57
mov eax, dword [ebp - 0x78]
mov dword [esi], eax
mov eax, dword [ebp - 0x12c]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 8], eax
mov ecx, dword [ebp - 0x7c]
test ecx, ecx
je 0x43fe64
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0x80]
test ecx, ecx
je 0x43fe71
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]
test dword [edi + 8], 0x400
je 0x43fec2
mov eax, dword [0x44b4b8]
mov dword [eax + 0x3810], 0x434d50
mov dword [eax + 0x3814], 0x434e80
mov dword [eax + 0x3818], 0x434ee0
mov dword [eax + 0x381c], 0x434fe0
mov dword [eax + 0x3820], 0x435070
mov esi, dword [sym.imp.USER32.dll_PeekMessageW]
xor al, al
mov dword [ebp - 0x134], eax
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x4c]
push 1
push 0
push 0
push 0
push eax
call esi
test eax, eax
je 0x43ff30
lea eax, [ebp - 0x4c]
push eax
call edi
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
mov eax, dword [ebp - 0x134]
mov ecx, 1
cmp dword [ebp - 0x48], 0x12
push ecx
movzx eax, al
push 0
cmove eax, ecx
push 0
mov dword [ebp - 0x134], eax
lea eax, [ebp - 0x4c]
push 0
push eax
call esi
test eax, eax
jne 0x43fee8
cmp byte [ebp - 0x134], al
jne 0x440107
mov eax, dword [0x44b4b8]
test eax, eax
je 0x43ff3e
mov eax, dword [eax + 0x78]
jmp 0x43ff40
xor eax, eax
cmp dword [eax + 0x24], 0
jne 0x43ff4b
call fcn.004348f0
call fcn.00435e60
call fcn.00409110
call fcn.00401660
cmp byte [0x44b4a0], 0
jne 0x43ff6f
call fcn.00401be0
mov byte [0x44b4a0], 1
call fcn.0040ba70
call fcn.0040bf20
mov eax, dword [0x44b4c8]
movaps xmm0, xmmword [0x447c60]
push 0
push 0x44b4c4
movups xmmword [ebp - 0x2c], xmm0
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0x84]
mov eax, dword [0x44b4c8]
lea edx, [ebp - 0x2c]
push edx
push dword [0x44b4c4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc8]
mov eax, dword [0x44b4b8]
xor ecx, ecx
mov eax, dword [eax + 0x40e0]
mov eax, dword [eax]
sub eax, 0xffffff80
cmp byte [eax], cl
cmovne ecx, eax
call fcn.00433e50
mov eax, dword [ebp - 0x30]
test dword [eax + 8], 0x400
je 0x4400f3
call fcn.0041abf0
mov esi, dword [0x44b4b8]
mov edx, 1
mov dword [ebp - 0x12c], edx
mov eax, dword [esi + 0x3830]
cmp eax, edx
jle 0x44006f
mov ecx, 4
mov dword [ebp - 0x78], ecx
nop word [eax + eax]
mov eax, dword [esi + 0x3838]
mov edi, dword [ecx + eax]
test dword [edi + 4], 0x400
jne 0x440058
mov eax, dword [esi + 0x37fc]
test eax, eax
je 0x44003d
push 0
push edi
call eax
mov ecx, dword [ebp - 0x78]
add esp, 8
mov edx, dword [ebp - 0x12c]
mov eax, dword [esi + 0x381c]
test eax, eax
je 0x440058
push 0
push edi
call eax
mov ecx, dword [ebp - 0x78]
add esp, 8
mov edx, dword [ebp - 0x12c]
mov eax, dword [esi + 0x3830]
inc edx
add ecx, 4
mov dword [ebp - 0x12c], edx
mov dword [ebp - 0x78], ecx
cmp edx, eax
jl 0x440010
mov edx, 1
mov dword [ebp - 0x78], edx
cmp eax, edx
jle 0x4400ed
mov ecx, 4
mov dword [ebp - 0x12c], ecx
nop word [eax + eax]
mov eax, dword [esi + 0x3838]
mov edi, dword [ecx + eax]
test dword [edi + 4], 0x400
jne 0x4400d8
mov eax, dword [esi + 0x3800]
test eax, eax
je 0x4400bd
push 0
push edi
call eax
mov ecx, dword [ebp - 0x12c]
add esp, 8
mov edx, dword [ebp - 0x78]
mov eax, dword [esi + 0x3820]
test eax, eax
je 0x4400d8
push 0
push edi
call eax
mov ecx, dword [ebp - 0x12c]
add esp, 8
mov edx, dword [ebp - 0x78]
inc edx
add ecx, 4
mov dword [ebp - 0x78], edx
mov dword [ebp - 0x12c], ecx
cmp edx, dword [esi + 0x3830]
jl 0x440090
mov esi, dword [sym.imp.USER32.dll_PeekMessageW]
mov eax, dword [0x44b4c0]
push 0
push 1
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
jmp 0x43fed0
mov edi, dword [0x44b4b8]
test edi, edi
je 0x440116
mov esi, dword [edi + 0x78]
jmp 0x440118
xor esi, esi
call fcn.0041b140
call fcn.00434c40
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44012f
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi]
test ecx, ecx
je 0x44013b
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x440148
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [0x44b4b8]
mov dword [edi + 0x70], 0
mov dword [edi + 0x78], 0
test eax, eax
je 0x440165
dec dword [eax + 0xb0]
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
push esi
call edi
mov esi, dword [0x44b4b8]
add esp, 4
test esi, esi
je 0x440183
mov eax, dword [esi + 0x74]
mov dword [ebp - 0x78], eax
jmp 0x44018a
mov dword [ebp - 0x78], 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
push str.ImGui_Platform
call dword [sym.imp.USER32.dll_UnregisterClassW]
call fcn.0041b140
mov ecx, dword [ebp - 0x78]
mov eax, dword [ecx + 0x28]
test eax, eax
je 0x4401b7
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x78]
mov eax, dword [0x44b4b8]
mov dword [esi + 0x6c], 0
mov dword [esi + 0x74], 0
test eax, eax
je 0x4401d4
dec dword [eax + 0xb0]
push ecx
call edi
mov esi, dword [0x44b4b8]
add esp, 4
mov dword [0x44b4b8], esi
call fcn.0040a4d0
mov dword [0x44b4b8], 0
test esi, esi
je 0x440215
mov ecx, esi
call fcn.00424800
mov eax, dword [0x44b4b8]
test eax, eax
je 0x44020f
dec dword [eax + 0xb0]
push esi
call edi
add esp, 4
call fcn.0043f730
push dword [ebp - 0x138]
call dword [sym.imp.USER32.dll_DestroyWindow]
push dword [ebp - 0x9c]
push dword [ebp - 0x88]
call dword [sym.imp.USER32.dll_UnregisterClassW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00440256
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret