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

Disassembly:
sub esp, 0x80
mov eax, dword [0x10164bc0]
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 0x1009a242
mov ebp, 0x86000000
mov ebx, ebp
jmp 0x1009a279
cmp dword [esi + 8], 0
je 0x1009a263
cmp dword [esi + 4], 0
mov ebp, 0x6cf0000
mov eax, 0x6ca0000
mov dword [esp + 0x14], 0x40000
cmove ebp, eax
jmp 0x1009a271
mov eax, 0x40000
mov ebp, 0x860a0000
mov dword [esp + 0x14], eax
cmp dword [esi + 0x10], 0
mov ebx, ebp
je 0x1009a282
mov eax, 0x40008
mov dword [esp + 0x14], eax
cmp word [0x1019e3ba], 0
jne 0x1009a350
push 0x2c
lea eax, [esp + 0x64]
mov dword [esp + 0x60], 0x30
push 0
push eax
call fcn.100c6790
mov eax, dword [0x1019e3b0]
add esp, 0xc
mov dword [esp + 0x60], 0x23
mov dword [esp + 0x64], 0x1009af70
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 0x1009a321
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 [0x1019e3ba], ax
test ax, ax
jne 0x1009a350
push str.Win32:_Failed_to_register_window_class
push 0x10008
call fcn.10096130
add esp, 8
xor eax, eax
jmp 0x1009a7d2
push 0x1000
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x1009a3de
cmp dword [0x1019f17c], 0
jne 0x1009a3de
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.100939d0
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
je 0x1009a349
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.1009a010
push dword [esp + 0x28]
mov dword [0x1019f17c], eax
call fcn.10093a40
add esp, 0x14
cmp dword [0x1019f17c], 0
je 0x1009a349
mov eax, dword [esi + 0x40]
test eax, eax
je 0x1009a440
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 0x1009a4d7
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 0x1009a475
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 0x1009a4b4
cmp dword [edi + 4], 0x80000000
jne 0x1009a4b4
mov dword [esp + 0x10], 0x80000000
mov dword [esp + 0x20], 0x80000000
jmp 0x1009a4c3
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.10095ce0
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
je 0x1009a349
push edi
push dword [0x1019e3b0]
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 [0x1019e3ba]
push eax
push ebp
call dword [sym.imp.USER32.dll_CreateWindowExW]
push dword [esp + 0x14]
mov dword [esi + 0x2b4], eax
call fcn.10093a40
mov eax, dword [esi + 0x2b4]
add esp, 4
test eax, eax
jne 0x1009a54f
push str.Win32:_Failed_to_create_window
push 0x10008
call fcn.10096130
add esp, 8
xor eax, eax
jmp 0x1009a7d2
push esi
push str.GLFW
push eax
call dword [sym.imp.USER32.dll_SetPropW]
push 0
push 1
push 6
call fcn.100962b0
add esp, 0xc
test eax, eax
je 0x1009a5a7
push 0
push 1
push 0x233
push dword [esi + 0x2b4]
call dword [0x1019f1a0]
push 0
push 1
push 0x4a
push dword [esi + 0x2b4]
call dword [0x1019f1a0]
push 0
push 1
push 0x49
push dword [esi + 0x2b4]
call dword [0x1019f1a0]
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 0x1009a76e
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 0x1009a67c
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x20]
push ecx
push eax
call fcn.10097290
movss xmm2, dword [esp + 0x28]
xorps xmm0, xmm0
add esp, 0xc
comiss xmm2, xmm0
jbe 0x1009a67c
movss xmm1, dword [esp + 0x18]
comiss xmm1, xmm0
jbe 0x1009a67c
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.10096210
add esp, 4
test eax, eax
je 0x1009a6ab
push dword [esi + 0x2b4]
call dword [0x1019f1ac]
push eax
push ebp
push 0
push ebx
lea eax, [esp + 0x34]
push eax
call dword [0x1019f1b0]
jmp 0x1009a6ba
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 0x1009a76e
cmp dword [edi + 0x1c], 0
jne 0x1009a76e
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 0x1009a79c
push esi
call fcn.1009ad50
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 0x1009a7c3
mov eax, dword [esp + 0x2c]
mov dword [ebx], eax
test edi, edi
je 0x1009a7cd
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.100c490a
add esp, 0x80
ret