Function at 0x1006b390
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x80
mov eax, dword [0x100ee940]
xor eax, esp
mov dword [esp + 0x7c], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x90]
push edi
mov edi, dword [esp + 0x98]
cmp dword [esi + 0x40], 0
je 0x1006b3c2
mov ebp, 0x86000000
mov ebx, ebp
jmp 0x1006b3f9
cmp dword [esi + 8], 0
je 0x1006b3e3
cmp dword [esi + 4], 0
mov ebp, 0x6cf0000
mov eax, 0x6ca0000
mov dword [esp + 0x14], 0x40000
cmove ebp, eax
jmp 0x1006b3f1
mov eax, 0x40000
mov ebp, 0x860a0000
mov dword [esp + 0x14], eax
cmp dword [esi + 0x10], 0
mov ebx, ebp
je 0x1006b402
mov eax, 0x40008
mov dword [esp + 0x14], eax
cmp word [0x10106b62], 0
jne 0x1006b4d0
push 0x2c
lea eax, [esp + 0x64]
mov dword [esp + 0x60], 0x30
push 0
push eax
call fcn.1007a5e0
mov eax, dword [0x10106b58]
add esp, 0xc
mov dword [esp + 0x60], 0x23
mov dword [esp + 0x64], 0x1006c0f0
mov dword [esp + 0x70], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push 0x8040
push 0
push 0
push 1
push str.GLFW_ICON
push 0
mov dword [esp + 0x90], eax
mov dword [esp + 0x9c], str.GLFW30
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
mov dword [esp + 0x74], eax
test eax, eax
jne 0x1006b4a1
push 0x8040
push eax
push eax
push 1
push 0x7f00
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
mov dword [esp + 0x74], eax
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
mov word [0x10106b62], ax
test ax, ax
jne 0x1006b4d0
push str.Win32:_Failed_to_register_window_class
push 0x10008
call fcn.100672c0
add esp, 8
xor eax, eax
jmp 0x1006b952
push 0x1000
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x1006b55e
cmp dword [0x10107924], 0
jne 0x1006b55e
push 0xd
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0xe
mov dword [esp + 0x14], eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [esp + 0x1c], eax
imul eax, dword [esp + 0x10]
push 4
push eax
call fcn.100662e0
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
je 0x1006b4c9
mov ecx, dword [esp + 0x10]
push 0
push 0
mov byte [eax + 3], 1
mov dword [esp + 0x34], eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x24]
push 0
push eax
mov dword [esp + 0x38], ecx
call fcn.1006b190
push dword [esp + 0x28]
mov dword [0x10107924], eax
call fcn.10066350
add esp, 0x14
cmp dword [0x10107924], 0
je 0x1006b4c9
mov eax, dword [esi + 0x40]
test eax, eax
je 0x1006b5c0
xorps xmm0, xmm0
mov dword [esp + 0x34], 0x28
lea ecx, [esp + 0x34]
mov dword [esp + 0x58], 0
push ecx
movups xmmword [esp + 0x3c], xmm0
movups xmmword [esp + 0x4c], xmm0
push dword [eax + 0xd0]
call dword [sym.imp.USER32.dll_GetMonitorInfoW]
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
sub ecx, edx
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x44]
sub ecx, eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], ecx
jmp 0x1006b657
mov eax, dword [edi + 8]
mov dword [esp + 0x2c], eax
mov eax, dword [edi + 0xc]
mov dword [esp + 0x30], eax
mov eax, dword [edi + 0x2c]
mov dword [esi + 0x2cc], eax
cmp dword [edi + 0x2c], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
je 0x1006b5f5
mov ebx, ebp
or ebx, 0x1000000
mov ebp, dword [esp + 0x14]
lea eax, [esp + 0x24]
push ebp
push 0
push ebx
push eax
call dword [sym.imp.USER32.dll_AdjustWindowRectEx]
mov eax, dword [edi]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
cmp eax, 0x80000000
jne 0x1006b634
cmp dword [edi + 4], 0x80000000
jne 0x1006b634
mov dword [esp + 0x10], 0x80000000
mov dword [esp + 0x20], 0x80000000
jmp 0x1006b643
add eax, edx
mov dword [esp + 0x10], eax
mov eax, dword [edi + 4]
add eax, ecx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x2c]
sub eax, edx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x30]
sub eax, ecx
mov dword [esp + 0x18], eax
push dword [edi + 0x10]
call fcn.10066e70
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
je 0x1006b4c9
push edi
push dword [0x10106b58]
push 0
push 0
push dword [esp + 0x28]
push dword [esp + 0x30]
push dword [esp + 0x38]
push dword [esp + 0x2c]
push ebx
push eax
movzx eax, word [0x10106b62]
push eax
push ebp
call dword [sym.imp.USER32.dll_CreateWindowExW]
push dword [esp + 0x14]
mov dword [esi + 0x2b4], eax
call fcn.10066350
mov eax, dword [esi + 0x2b4]
add esp, 4
test eax, eax
jne 0x1006b6cf
push str.Win32:_Failed_to_create_window
push 0x10008
call fcn.100672c0
add esp, 8
xor eax, eax
jmp 0x1006b952
push esi
push str.GLFW
push eax
call dword [sym.imp.USER32.dll_SetPropW]
push 0
push 1
push 6
call fcn.10067440
add esp, 0xc
test eax, eax
je 0x1006b727
push 0
push 1
push 0x233
push dword [esi + 0x2b4]
call dword [0x10107948]
push 0
push 1
push 0x4a
push dword [esi + 0x2b4]
call dword [0x10107948]
push 0
push 1
push 0x49
push dword [esi + 0x2b4]
call dword [0x10107948]
cmp dword [esi + 0x40], 0
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x2d4], eax
mov eax, dword [edi + 0x344]
mov dword [esi + 0x2d8], eax
mov eax, dword [edi + 0x348]
mov dword [esi + 0x2dc], eax
jne 0x1006b8ee
mov eax, dword [edi + 8]
xorps xmm0, xmm0
push 2
push dword [esi + 0x2b4]
mov dword [esp + 0x34], eax
mov eax, dword [edi + 0xc]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x38], eax
mov dword [esp + 0x64], 0x2c
movups xmmword [esp + 0x68], xmm0
movups xmmword [esp + 0x78], xmm0
movq qword [esp + 0x88], xmm0
call dword [sym.imp.USER32.dll_MonitorFromWindow]
cmp dword [edi + 0x3c], 0
mov dword [esp + 0x10], eax
je 0x1006b7fc
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x20]
push ecx
push eax
call fcn.10068410
movss xmm2, dword [esp + 0x28]
xorps xmm0, xmm0
add esp, 0xc
comiss xmm2, xmm0
jbe 0x1006b7fc
movss xmm1, dword [esp + 0x18]
comiss xmm1, xmm0
jbe 0x1006b7fc
movd xmm0, dword [esp + 0x2c]
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm2
cvttss2si eax, xmm0
movd xmm0, dword [esp + 0x30]
cvtdq2ps xmm0, xmm0
mov dword [esp + 0x2c], eax
mulss xmm0, xmm1
cvttss2si eax, xmm0
mov dword [esp + 0x30], eax
push 0x3839
call fcn.100673a0
add esp, 4
test eax, eax
je 0x1006b82b
push dword [esi + 0x2b4]
call dword [0x10107954]
push eax
push ebp
push 0
push ebx
lea eax, [esp + 0x34]
push eax
call dword [0x10107958]
jmp 0x1006b83a
push ebp
push 0
push ebx
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.USER32.dll_AdjustWindowRectEx]
lea eax, [esp + 0x5c]
push eax
push dword [esi + 0x2b4]
call dword [sym.imp.USER32.dll_GetWindowPlacement]
mov eax, dword [esp + 0x7c]
sub eax, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x7c]
sub eax, dword [esp + 0x28]
push eax
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
movups xmm0, xmmword [esp + 0x24]
lea eax, [esp + 0x5c]
mov dword [esp + 0x64], 0
push eax
push dword [esi + 0x2b4]
movups xmmword [esp + 0x80], xmm0
call dword [sym.imp.USER32.dll_SetWindowPlacement]
cmp dword [edi + 0x2c], 0
je 0x1006b8ee
cmp dword [edi + 0x1c], 0
jne 0x1006b8ee
lea eax, [esp + 0x34]
mov dword [esp + 0x34], 0x28
push eax
push dword [esp + 0x14]
xorps xmm0, xmm0
mov dword [esp + 0x60], 0
movups xmmword [esp + 0x40], xmm0
movups xmmword [esp + 0x50], xmm0
call dword [sym.imp.USER32.dll_GetMonitorInfoW]
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x4c]
sub eax, edx
mov ecx, dword [esp + 0x48]
push 0x14
push eax
mov eax, dword [esp + 0x58]
sub eax, ecx
push eax
push edx
push ecx
push 0
push dword [esi + 0x2b4]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 1
push dword [esi + 0x2b4]
call dword [sym.imp.SHELL32.dll_DragAcceptFiles]
mov eax, dword [esp + 0x9c]
cmp dword [eax + 0x3c], 0
je 0x1006b91c
push esi
call fcn.1006bed0
add esp, 4
mov dword [esi + 0x2d0], 1
lea eax, [esp + 0x24]
push eax
push dword [esi + 0x2b4]
lea edi, [esi + 0x2e4]
lea ebx, [esi + 0x2e0]
call dword [sym.imp.USER32.dll_GetClientRect]
test ebx, ebx
je 0x1006b943
mov eax, dword [esp + 0x2c]
mov dword [ebx], eax
test edi, edi
je 0x1006b94d
mov eax, dword [esp + 0x30]
mov dword [edi], eax
mov eax, 1
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10078315
add esp, 0x80
ret