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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x428fe2
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x444310]
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 edi, ecx
mov eax, dword [ebp + 8]
lea ebx, [edi + 0x98]
mov dword [ebp - 0x38], eax
mov ecx, ebx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x14]
push 0x447908
push eax
mov dword [ebp - 0x14], 0
call fcn.0040eb20
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebx + 4]
jne 0x40d07b
push ecx
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0x447908
push eax
push ecx
lea eax, [ebp - 0x34]
mov ecx, ebx
push eax
call fcn.0040ee00
mov eax, dword [ebp - 0x34]
mov esi, dword [eax + 0x20]
mov eax, dword [edi + 0x14]
push dword [eax + 0x4c]
call dword [0x445b2c]
cmp esi, 0xffffffff
je 0x40d09d
push dword [ebp - 0x1c]
push 0
push 1
push esi
call dword [0x445b20]
push 0x447950
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
mov ecx, ebx
call fcn.0040eb20
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebx + 4]
jne 0x40d0d7
push ecx
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0x447950
push eax
push ecx
lea eax, [ebp - 0x34]
mov ecx, ebx
push eax
call fcn.0040ee00
mov eax, dword [ebp - 0x34]
mov esi, dword [eax + 0x20]
mov eax, dword [edi + 0x14]
push dword [eax + 0x4c]
call dword [0x445b2c]
cmp esi, 0xffffffff
je 0x40d0f9
push dword [ebp - 0x20]
push 0
push 1
push esi
call dword [0x445b20]
push 0x4478d8
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
mov ecx, ebx
call fcn.0040eb20
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebx + 4]
jne 0x40d133
push ecx
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x4478d8
push eax
push ecx
lea eax, [ebp - 0x34]
mov ecx, ebx
push eax
call fcn.0040ee00
mov eax, dword [ebp - 0x34]
mov esi, dword [eax + 0x20]
mov eax, dword [edi + 0x14]
push dword [eax + 0x4c]
call dword [0x445b2c]
cmp esi, 0xffffffff
je 0x40d155
push dword [ebp - 0x28]
push 0
push 1
push esi
call dword [0x445b20]
push 0x447968
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
mov ecx, ebx
call fcn.0040eb20
mov esi, dword [ebp - 0x14]
cmp esi, dword [ebx + 4]
jne 0x40d18f
push ecx
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0x447968
push eax
push ecx
lea eax, [ebp - 0x34]
mov ecx, ebx
push eax
call fcn.0040ee00
mov esi, dword [ebp - 0x34]
push dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
lea ecx, [ebp - 0x88]
call fcn.00407850
mov ecx, dword [edi + 0x14]
add esp, 4
mov esi, dword [esi + 0x20]
mov dword [ebp - 0x28], eax
push dword [ecx + 0x4c]
call dword [0x445b2c]
cmp esi, 0xffffffff
je 0x40d1c8
push dword [ebp - 0x28]
push 0
push 1
push esi
call dword [0x445b20]
push 0x447938
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
mov ecx, ebx
call fcn.0040eb20
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebx + 4]
jne 0x40d202
push ecx
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0x447938
push eax
push ecx
lea eax, [ebp - 0x34]
mov ecx, ebx
push eax
call fcn.0040ee00
mov eax, dword [ebp - 0x34]
mov esi, dword [eax + 0x20]
mov eax, dword [edi + 0x14]
push dword [eax + 0x4c]
call dword [0x445b2c]
cmp esi, 0xffffffff
je 0x40d224
push dword [ebp - 0x18]
push 0
push 1
push esi
call dword [0x445b20]
push 0x4478f0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
lea ecx, [edi + 0x58]
call fcn.0040eb20
mov eax, dword [ebp - 0x18]
cmp eax, dword [edi + 0x5c]
jne 0x40d260
push ecx
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0x4478f0
push eax
push ecx
lea eax, [ebp - 0x34]
push eax
lea ecx, [edi + 0x58]
call fcn.0040eee0
mov eax, dword [ebp - 0x34]
mov esi, dword [eax + 0x20]
mov eax, dword [edi + 0x14]
push dword [eax + 0x4c]
call dword [0x445b2c]
cmp esi, 0xffffffff
je 0x40d286
movss xmm0, dword [ebp + 0x1c]
push ecx
movss dword [esp], xmm0
push esi
call dword [0x445a38]
mov eax, dword [0x4478b8]
test eax, eax
jne 0x40d2cb
push 0x80
call fcn.00426bf5
mov esi, eax
add esp, 4
mov dword [ebp - 0x28], esi
push 0x80
push 0
push esi
mov dword [ebp - 4], 0
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov ecx, esi
call fcn.00408490
mov dword [ebp - 4], 0xffffffff
mov dword [0x4478b8], eax
lea ecx, [ebp - 0x24]
push ecx
mov ecx, dword [eax + 4]
call dword [sym.imp.sfml_window_2.dll_public:_class_sf::Vector2_unsigned_int____thiscall_sf::Window::getSize_void_]
movd xmm2, dword [ebp - 0x24]
lea eax, [ebp - 0x18]
movd xmm3, dword [ebp - 0x20]
lea ecx, [edi + 0x78]
movss xmm1, dword [0x43de44]
cvtdq2ps xmm2, xmm2
push 0x447920
push eax
mov dword [ebp - 0x18], 0
cvtdq2ps xmm3, xmm3
movaps xmm0, xmm1
movss dword [ebp - 0x48], xmm2
divss xmm0, xmm2
divss xmm1, xmm3
movss dword [ebp - 0x44], xmm3
movss dword [ebp - 0x40], xmm0
movss dword [ebp - 0x3c], xmm1
call fcn.0040eb20
mov eax, dword [ebp - 0x18]
cmp eax, dword [edi + 0x7c]
jne 0x40d34b
push ecx
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0x447920
push eax
push ecx
lea eax, [ebp - 0x34]
push eax
lea ecx, [edi + 0x78]
call fcn.0040ee70
mov eax, dword [ebp - 0x34]
mov esi, dword [eax + 0x20]
mov eax, dword [edi + 0x14]
push dword [eax + 0x4c]
call dword [0x445b2c]
cmp esi, 0xffffffff
je 0x40d36c
lea eax, [ebp - 0x48]
push eax
push 1
push esi
call dword [0x445ae0]
mov eax, dword [edi + 0x3c]
mov esi, dword [eax]
cmp esi, eax
je 0x40d3a6
cmp byte [esi + 0x28], 0
jne 0x40d39f
mov eax, dword [esi + 0x2c]
mov ebx, dword [esi + 0x20]
mov dword [ebp - 0x28], eax
mov eax, dword [edi + 0x14]
push dword [eax + 0x4c]
call dword [0x445b2c]
cmp ebx, 0xffffffff
je 0x40d39f
push dword [ebp - 0x28]
push ebx
call dword [0x445a58]
mov esi, dword [esi]
cmp esi, dword [edi + 0x3c]
jne 0x40d375
mov eax, dword [edi + 0x7c]
mov esi, dword [eax]
cmp esi, eax
je 0x40d3de
nop
cmp byte [esi + 0x28], 0
jne 0x40d3d7
mov eax, dword [edi + 0x14]
mov ebx, dword [esi + 0x20]
push dword [eax + 0x4c]
call dword [0x445b2c]
cmp ebx, 0xffffffff
je 0x40d3d7
lea eax, [esi + 0x2c]
push eax
push 1
push ebx
call dword [0x445ae0]
mov esi, dword [esi]
cmp esi, dword [edi + 0x7c]
jne 0x40d3b0
mov eax, dword [edi + 0x9c]
mov esi, dword [eax]
cmp esi, eax
je 0x40d423
nop word [eax + eax]
cmp byte [esi + 0x28], 0
jne 0x40d419
mov eax, dword [edi + 0x14]
mov ebx, dword [esi + 0x20]
push dword [eax + 0x4c]
call dword [0x445b2c]
cmp ebx, 0xffffffff
je 0x40d419
lea eax, [esi + 0x2c]
push eax
push 0
push 1
push ebx
call dword [0x445b20]
mov esi, dword [esi]
cmp esi, dword [edi + 0x9c]
jne 0x40d3f0
mov eax, dword [edi + 0xbc]
mov esi, dword [eax]
cmp esi, eax
je 0x40d46f
nop
cmp byte [esi + 0x28], 0
jne 0x40d465
mov eax, dword [esi + 0x24]
mov ebx, dword [esi + 0x20]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0x2c]
mov dword [ebp - 0x28], eax
mov eax, dword [edi + 0x14]
push dword [eax + 0x4c]
call dword [0x445b2c]
cmp ebx, 0xffffffff
je 0x40d465
push dword [ebp - 0x28]
push 0
push dword [ebp - 0x20]
push ebx
call dword [0x445b20]
mov esi, dword [esi]
cmp esi, dword [edi + 0xbc]
jne 0x40d430
mov eax, dword [edi + 0x5c]
mov esi, dword [eax]
cmp esi, eax
je 0x40d4b5
cmp byte [esi + 0x28], 0
jne 0x40d4ae
mov eax, dword [edi + 0x14]
movss xmm0, dword [esi + 0x2c]
mov ebx, dword [esi + 0x20]
movss dword [ebp - 0x28], xmm0
push dword [eax + 0x4c]
call dword [0x445b2c]
cmp ebx, 0xffffffff
je 0x40d4ae
movss xmm0, dword [ebp - 0x28]
push ecx
movss dword [esp], xmm0
push ebx
call dword [0x445a38]
mov esi, dword [esi]
cmp esi, dword [edi + 0x5c]
jne 0x40d478
mov eax, dword [edi + 0xdc]
xor ebx, ebx
mov esi, dword [eax]
cmp esi, eax
je 0x40d51a
cmp byte [esi + 0x28], 0
jne 0x40d510
mov eax, dword [esi + 0x2c]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x28], eax
mov eax, dword [edi + 0x14]
push dword [eax + 0x4c]
call dword [0x445b2c]
mov eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x40d50f
push ebx
push eax
call dword [0x445a58]
lea eax, [ebx + 0x84c0]
push eax
call dword [0x445170]
push dword [ebp - 0x20]
push 0xde1
call dword [sym.imp.OPENGL32.dll_glBindTexture]
inc ebx
mov esi, dword [esi]
cmp esi, dword [edi + 0xdc]
jne 0x40d4c3
call fcn.00409710
mov eax, dword [edi + 0x1c]
mov esi, dword [eax]
cmp esi, eax
je 0x40d55e
mov ebx, dword [esi + 8]
mov al, byte [esi + 0xc]
push ebx
mov byte [ebp - 0x29], al
call dword [sym.imp.OPENGL32.dll_glIsEnabled]
mov cl, byte [ebp - 0x29]
test al, al
setne al
cmp al, cl
je 0x40d557
push ebx
test cl, cl
je 0x40d551
call dword [sym.imp.OPENGL32.dll_glEnable]
jmp 0x40d557
call dword [sym.imp.OPENGL32.dll_glDisable]
mov esi, dword [esi]
cmp esi, dword [edi + 0x1c]
jne 0x40d528
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0xbe2
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
lea ecx, [edi + 0x18]
call fcn.0040bfc0
mov eax, dword [ebp - 0x18]
cmp eax, dword [edi + 0x1c]
jne 0x40d59f
lea eax, [ebp - 0x1c]
push ecx
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push ecx
lea eax, [ebp - 0x34]
push eax
lea ecx, [edi + 0x18]
call fcn.0040ef50
mov eax, dword [ebp - 0x34]
cmp byte [eax + 0xc], 1
jne 0x40d5b1
push dword [edi + 8]
push dword [edi + 4]
call dword [sym.imp.OPENGL32.dll_glBlendFunc]
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 0x14]
cmp eax, 0xffffffff
jne 0x40d5c0
push 4
jmp 0x40d5c1
push eax
push dword [ebp - 0x38]
call fcn.00404810
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.00426bae
mov esp, ebp
pop ebp
ret 0x18