Function at 0x41f720
Capabilities:
Hide graphical window

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 0x48ab00
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x250
mov eax, dword [0x4b0040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebx + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x22c], 1
movlpd qword [ebp - 0x58], xmm0
movlpd qword [ebp - 0x50], xmm0
movlpd qword [ebp - 0x48], xmm0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x34], 0x500
mov dword [ebp - 0x30], 0x2d0
call fcn.00434140
test al, al
je 0x41f7f7
cmp byte [0x4b28dc], 0
jne 0x41f9d4
push 0x4b6498
push 0
push 0x4a63dc
push 1
call dword [sym.imp.d2d1.dll_Ordinal_1]
test eax, eax
jns 0x41f8ed
push 0x10
push str.Error
push str.CD3D11Base::InitDirect2DAndWrite______Couldnt_create_Direct2D_Factory
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0x10
push 0x4a468c
push str.Couldnt_initialize_Direct3D__Direct2D_or_DirectWrite
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
or esi, 0xffffffff
mov dword [ebp - 4], 0xf
mov ecx, dword [ebp - 0x40]
test ecx, ecx
je 0x41f829
mov dword [ebp - 0x40], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 4], 0x10
mov ecx, dword [ebp - 0x44]
test ecx, ecx
je 0x41f844
mov dword [ebp - 0x44], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 4], 0x11
mov ecx, dword [ebp - 0x48]
test ecx, ecx
je 0x41f85f
mov dword [ebp - 0x48], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 4], 0x12
mov ecx, dword [ebp - 0x4c]
test ecx, ecx
je 0x41f87a
mov dword [ebp - 0x4c], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 4], 0x13
mov ecx, dword [ebp - 0x50]
test ecx, ecx
je 0x41f895
mov dword [ebp - 0x50], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 4], 0x14
mov ecx, dword [ebp - 0x54]
test ecx, ecx
je 0x41f8b0
mov dword [ebp - 0x54], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 4], 0x15
mov edx, dword [ebp - 0x58]
test edx, edx
je 0x41f8cb
mov dword [ebp - 0x58], 0
mov ecx, dword [edx]
push edx
call dword [ecx + 8]
mov eax, esi
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.00435413
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x10
mov dword [ebp - 4], 0
mov ecx, dword [0x4b6490]
test ecx, ecx
je 0x41f90e
mov dword [0x4b6490], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov edi, dword [sym.imp.d3d10_1.dll_D3D10CreateDevice1]
push 0x4b6490
push 0x20
push 0xa100
push 0x20
push 0
push 0
push dword [0x4b6374]
call edi
test eax, eax
jns 0x41f97e
mov dword [ebp - 4], 1
mov ecx, dword [0x4b6490]
test ecx, ecx
je 0x41f953
mov dword [0x4b6490], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
push 0x4b6490
push 0x20
push 0xa100
push 0x20
push 0
push 3
push dword [0x4b6374]
call edi
push 0x10
push str.Error
push str.CD3D11Base::InitDirect2DAndWrite______Couldnt_create_device_with_Software_or_Hardware_driver
jmp 0x41f7ef
mov dword [ebp - 4], 2
mov ecx, dword [0x4b6494]
test ecx, ecx
je 0x41f99f
mov dword [0x4b6494], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
push 0x4b6494
push 0x4a63ec
push 0
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.DWrite.dll_DWriteCreateFactory]
test eax, eax
jns 0x41f9cd
push 0x10
push str.Error
push str.CD3D11Base::InitDirect2DAndWrite______Couldnt_create_DirectWrite_Factory
jmp 0x41f7ef
mov byte [0x4b28dc], 1
xorps xmm0, xmm0
mov dword [ebp - 0x5c], esi
lea eax, [ebp - 0x214]
movlpd qword [ebp - 0x208], xmm0
push eax
mov dword [ebp - 0x1fc], 0
movlpd qword [ebp - 0x1f4], xmm0
mov dword [ebp - 0x1e8], 0
mov dword [ebp - 0x214], 0x30
mov dword [ebp - 0x1ec], str.Clb184_Window
mov dword [ebp - 0x210], 3
mov dword [ebp - 0x1f8], 0
mov dword [ebp - 0x20c], 0x435320
mov dword [ebp - 0x200], esi
call dword [sym.imp.USER32.dll_RegisterClassExW]
push 0
push esi
push 0
push 0
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
push 0xcf0000
push str.Hotcake_Laboratory___Touhou_Game_Jam_13_version
push str.Clb184_Window
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, eax
mov dword [ebp - 0x234], esi
test esi, esi
je 0x4204fc
push 5
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
cmp byte [0x4b2893], 0
mov dword [ebp - 0x60], esi
je 0x4204fc
mov ecx, dword [0x4b6488]
lea edx, [ebp - 0x58]
mov eax, dword [ebp - 0x34]
push edx
mov dword [ebp - 0x1e4], eax
lea edx, [ebp - 0x1e4]
mov eax, dword [ebp - 0x30]
push edx
push dword [0x4b6484]
mov dword [ebp - 0x1d0], 0
mov dword [ebp - 0x1c4], 0
mov dword [ebp - 0x1ac], 0
mov dword [ebp - 0x1bc], 2
mov dword [ebp - 0x1d4], 0x57
mov dword [ebp - 0x1cc], 1
mov dword [ebp - 0x1e0], eax
mov dword [ebp - 0x1dc], 1
mov dword [ebp - 0x1d8], 0x3c
mov dword [ebp - 0x1c0], 0x20
mov dword [ebp - 0x1b8], esi
mov dword [ebp - 0x1c8], 1
mov dword [ebp - 0x1b4], 1
mov dword [ebp - 0x1b0], 4
mov eax, dword [ecx]
push ecx
call dword [eax + 0x28]
lea ecx, [ebp - 0x60]
call fcn.00434dc0
lea ecx, [ebp - 0x60]
call fcn.00434f90
push esi
call dword [sym.imp.USER32.dll_SetActiveWindow]
lea eax, [ebp - 0x60]
xorps xmm0, xmm0
push eax
push esi
lea ecx, [ebp - 0x98]
movups xmmword [ebp - 0x98], xmm0
movups xmmword [ebp - 0x88], xmm0
call fcn.00418c70
lea ecx, [ebp - 0x98]
call fcn.0041a770
mov edx, dword [0x4b649c]
push 4
push edx
mov byte [ebp - 0x215], al
mov ecx, dword [edx]
call dword [ecx + 0x60]
mov eax, dword [0x4b2894]
mov edx, dword [0x4b649c]
add eax, 0x10
push eax
push 1
push 1
mov ecx, dword [edx]
push edx
call dword [ecx + 0x1c]
mov ecx, dword [0x4b649c]
push dword [0x4b3160]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x44]
mov ecx, dword [0x4b649c]
push 0
push 0
push dword [0x4b0ed0]
mov eax, dword [ecx]
push ecx
call dword [eax + 0x2c]
mov ecx, dword [0x4b649c]
push 0
push 0
push dword [0x4b0b34]
mov eax, dword [ecx]
push ecx
call dword [eax + 0x24]
cmp byte [ebp - 0x215], 0
jne 0x41fc0d
lea ecx, [ebp - 0x98]
or esi, 0xffffffff
call fcn.0041a030
jmp 0x41f80e
mov esi, dword [sym.imp.WINMM.dll_timeGetTime]
call esi
call esi
push 0x68
mov dword [ebp - 0x230], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x1a8]
movlpd qword [ebp - 0x228], xmm0
push 0
push eax
movsd qword [ebp - 0x240], xmm0
movsd qword [ebp - 0x248], xmm0
call fcn.0045e8a0
add esp, 0xc
lea ecx, [ebp - 0x1a8]
call fcn.0041dd70
push 0x70
lea eax, [ebp - 0x140]
push 0
push eax
call fcn.0045e8a0
add esp, 0xc
lea ecx, [ebp - 0x140]
call fcn.004346f0
cmp byte [ebp - 0x120], 0
jne 0x41fcd8
sub esp, 8
call fcn.00434a70
mov esi, dword [ebp - 0xd8]
mov dword [ebp - 4], 0xc
mov ecx, dword [ebp - 0xdc]
test ecx, ecx
je 0x41fcac
mov dword [ebp - 0xdc], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xdc]
movaps xmm0, xmmword [0x4a66f0]
push ecx
push 0
movups xmmword [ebp - 0x24], xmm0
mov eax, dword [esi]
lea ecx, [ebp - 0x24]
push ecx
push esi
call dword [eax + 0x20]
mov byte [ebp - 0x120], 1
mov ecx, dword [ebp - 0xdc]
mov dword [ebp - 0x108], 0x41c00000
test ecx, ecx
je 0x41fd01
movaps xmm0, xmmword [0x4a66d0]
lea edx, [ebp - 0x24]
movups xmmword [ebp - 0x24], xmm0
mov eax, dword [ecx]
push edx
push ecx
call dword [eax + 0x20]
movaps xmm0, xmmword [0x4a66b0]
mov eax, 7
mov esi, dword [ebp - 0x224]
movups xmmword [ebp - 0x19c], xmm0
mov dword [ebp - 0x64], eax
xor eax, eax
xorps xmm0, xmm0
mov dword [ebp - 0xa0], eax
movups xmmword [ebp - 0x78], xmm0
mov word [ebp - 0x78], ax
mov edi, dword [ebp - 0x78]
movups xmmword [ebp - 0xb0], xmm0
mov word [ebp - 0xb0], ax
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x110], str.Consolas
mov dword [ebp - 0x10c], 8
mov dword [ebp - 0x178], 0
mov dword [ebp - 0x174], 1
mov dword [ebp - 0x1a4], 0x44d5c000
mov dword [ebp - 0x1a0], 0x44820000
mov dword [ebp - 0x18c], 0x43400000
mov dword [ebp - 0x188], 0x42100000
mov byte [ebp - 0x1a8], 1
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x9c], 7
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x21c], edi
push 1
push 0
push 0
push 0
lea eax, [ebp - 0xcc]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x41fe8f
mov esi, dword [ebp - 0x234]
nop dword [eax]
nop dword [eax + eax]
lea eax, [ebp - 0xcc]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0xcc]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
mov eax, dword [ebp - 0xc8]
cmp eax, 0x214
ja 0x41fe2f
je 0x41fe3b
cmp eax, 5
je 0x41fe3b
cmp eax, 0x12
jne 0x41fe6c
mov dword [ebp - 0x22c], 0
jmp 0x41fe6c
sub eax, 0x231
je 0x41fe3b
sub eax, 1
jne 0x41fe6c
lea eax, [ebp - 0x24]
xorps xmm0, xmm0
push eax
push esi
movups xmmword [ebp - 0x24], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x20]
movd xmm2, eax
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x24]
cvtdq2ps xmm2, xmm2
movd xmm1, eax
cvtdq2ps xmm1, xmm1
call fcn.0041a300
push 1
push 0
push 0
push 0
lea eax, [ebp - 0xcc]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x41fdf0
mov esi, dword [ebp - 0x220]
test esi, esi
jl 0x4203c6
jg 0x41fea6
cmp dword [ebp - 0x224], 0x10
jb 0x4203c6
mov ecx, dword [0x4b649c]
lea edx, [ebp - 0x24]
movups xmm0, xmmword [0x4b3110]
push edx
push dword [ebp - 0x40]
movups xmmword [ebp - 0x24], xmm0
mov eax, dword [ecx]
push ecx
call dword [eax + 0xc8]
mov ecx, dword [0x4b649c]
push 0
push ecx
mov dword [esp], 0x3f800000
mov eax, dword [ecx]
push 1
push dword [ebp - 0x48]
push ecx
call dword [eax + 0xd4]
mov ecx, dword [0x4b649c]
lea edx, [ebp - 0x40]
push dword [ebp - 0x48]
push edx
mov eax, dword [ecx]
push 1
push ecx
call dword [eax + 0x84]
cmp byte [0x4b2891], 0
je 0x41ff22
push dword [ebp - 0x90]
call fcn.0043ad20
add esp, 4
push dword [ebp - 0x90]
call fcn.0043acf0
add esp, 4
call fcn.004016f0
mov eax, dword [0x4b2b34]
mov ecx, dword [0x4b28d8]
mov dword [0x4b2f28], 0
push 0x220
movq xmm0, qword [eax + 0x20]
movq qword [0x4b2f2c], xmm0
mov eax, dword [eax + 0x28]
mov dword [0x4b2f34], eax
mov eax, dword [ecx]
push 0x4b2f28
call dword [eax + 0xc]
mov esi, dword [ebp - 0x90]
push esi
call fcn.0043c4a0
add esp, 4
push 0xffffffffffffffff
push str.Move
push esi
call fcn.0043c4c0
add esp, 0xc
push 0xfffffffffffffffe
push esi
call fcn.0043b080
push esi
call fcn.0043c4a0
add esp, 0xc
push 1
push 0
push 1
push esi
call fcn.0043aba0
push 2
push esi
call fcn.0043c2c0
add esp, 0x18
push 0
push 0xa
push dword [ebp - 0x7c]
push dword [ebp - 0x80]
call fcn.00488cd0
mov ecx, eax
mov esi, edx
shld esi, ecx, 2
shl ecx, 2
add eax, ecx
mov ecx, dword [ebp - 0x80]
adc edx, esi
shld edx, eax, 1
add eax, eax
sub ecx, eax
mov eax, dword [ebp - 0x7c]
sbb eax, edx
or ecx, eax
jne 0x41ffe7
push dword [ebp - 0x90]
call fcn.0043ad20
add esp, 4
mov ecx, dword [0x4b649c]
add dword [ebp - 0x80], 1
push 4
adc dword [ebp - 0x7c], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 0x60]
mov esi, dword [ebp - 0x90]
push esi
call fcn.0043c4a0
add esp, 4
push 0xffffffffffffffff
push str.Draw
push esi
call fcn.0043c4c0
add esp, 0xc
push 0xfffffffffffffffe
push esi
call fcn.0043b080
push esi
call fcn.0043c4a0
add esp, 0xc
push 1
push 0
push 1
push esi
call fcn.0043aba0
push 2
push esi
call fcn.0043c2c0
mov ecx, dword [0x4b2894]
add esp, 0x18
mov eax, dword [ecx]
push 0x40
push 0x4b2898
call dword [eax + 0xc]
mov esi, dword [0x4b649c]
mov ecx, dword [0x4b2894]
mov eax, dword [esi]
mov edx, dword [eax + 0x1c]
lea eax, [ecx + 0x10]
push eax
push 1
push 1
push esi
call edx
movsd xmm0, qword [ebp - 0x240]
xor eax, eax
cmp byte [0x4b2891], al
sete al
ucomisd xmm0, qword [0x4a6508]
mov dword [ebp - 0x22c], eax
lahf
test ah, 0x44
jnp 0x42021c
movaps xmm1, xmm0
lea ecx, [ebp - 0x2c]
call fcn.0041da20
mov esi, eax
lea eax, [ebp - 0x78]
cmp eax, esi
je 0x420115
mov eax, dword [ebp - 0x64]
cmp eax, 7
jbe 0x4200e8
lea ecx, [eax*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x4200de
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42050d
push ecx
push edi
call fcn.00435574
add esp, 8
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x78], xmm0
movq xmm0, qword [esi + 0x10]
mov word [esi], ax
mov eax, dword [ebp - 0x78]
movq qword [ebp - 0x68], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov dword [ebp - 0x21c], eax
mov ecx, dword [ebp - 0x18]
cmp ecx, 7
jbe 0x42014f
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x420145
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42050d
push ecx
push edx
call fcn.00435574
add esp, 8
push 0
push 0x4a4628
lea ecx, [ebp - 0xb0]
call fcn.0040a130
xor edi, edi
cmp dword [ebp - 0x68], edi
jbe 0x420512
cmp dword [ebp - 0x64], 7
lea ecx, [ebp - 0x78]
lea esi, [edi + edi]
seta byte [ebp - 0x215]
jbe 0x42019f
mov ecx, dword [ebp - 0x21c]
movzx eax, word [esi + ecx]
lea ecx, [ebp - 0xb0]
push eax
call fcn.0040a000
mov edx, dword [ebp - 0x21c]
mov eax, edx
jmp 0x4201b8
movzx eax, word [esi + ecx]
lea ecx, [ebp - 0xb0]
push eax
call fcn.0040a000
mov edx, dword [ebp - 0x21c]
lea eax, [ebp - 0x78]
cmp word [eax + esi], 0x2e
lea ecx, [edi + 1]
je 0x4201c6
mov edi, ecx
jmp 0x420163
mov esi, dword [ebp - 0x68]
cmp esi, ecx
jbe 0x420512
cmp byte [ebp - 0x215], 0
lea eax, [ebp - 0x78]
cmovne eax, edx
movzx eax, word [eax + ecx*2]
lea ecx, [ebp - 0xb0]
push eax
call fcn.0040a000
add edi, 2
cmp esi, edi
jbe 0x420512
cmp byte [ebp - 0x215], 0
lea eax, [ebp - 0x78]
lea ecx, [ebp - 0xb0]
cmovne eax, dword [ebp - 0x21c]
movzx eax, word [eax + edi*2]
push eax
call fcn.0040a000
jmp 0x42022e
push 4
push str.INF
lea ecx, [ebp - 0xb0]
call fcn.0040a130
push ecx
lea edx, [ebp - 0xb0]
lea ecx, [ebp - 0x260]
call fcn.0041db40
mov esi, eax
add esp, 4
cmp dword [esi + 0x14], 7
mov edi, dword [esi + 0x10]
jbe 0x420250
mov esi, dword [esi]
xor ecx, ecx
mov eax, edi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004355aa
add esp, 4
mov dword [ebp - 0x220], eax
lea ecx, [edi + edi]
push ecx
push esi
push eax
call fcn.0045ea40
mov ecx, dword [ebp - 0x11c]
add esp, 0xc
test ecx, ecx
je 0x420294
push 2
push ecx
call fcn.00435574
add esp, 8
mov ecx, dword [ebp - 0x24c]
mov eax, dword [ebp - 0x220]
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x118], edi
cmp ecx, 7
jbe 0x4202e6
mov edx, dword [ebp - 0x260]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4202dc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42050d
push ecx
push edx
call fcn.00435574
add esp, 8
xor eax, eax
mov dword [ebp - 0x250], 0
lea ecx, [ebp - 0x140]
mov dword [ebp - 0x24c], 7
mov word [ebp - 0x260], ax
call fcn.004348e0
mov ecx, dword [0x4b649c]
lea edx, [ebp - 0x128]
push edx
push 1
push 0
mov eax, dword [ecx]
push ecx
call dword [eax + 0x20]
lea ecx, [ebp - 0x1a8]
call fcn.0041df40
mov ecx, dword [ebp - 0x58]
push 0
push 0
push ecx
mov eax, dword [ecx]
call dword [eax + 0x20]
mov esi, dword [sym.imp.WINMM.dll_timeGetTime]
xorps xmm0, xmm0
movlpd qword [ebp - 0x228], xmm0
call esi
movsd xmm1, qword [0x4a64c0]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x4a6700]
divsd xmm0, qword [0x4a64e0]
subsd xmm0, qword [ebp - 0x248]
divsd xmm1, xmm0
movsd qword [ebp - 0x240], xmm1
call esi
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x4a6700]
mov eax, dword [ebp - 0x224]
mov dword [ebp - 0x220], eax
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x224], eax
divsd xmm0, qword [0x4a64e0]
movsd qword [ebp - 0x248], xmm0
mov esi, dword [ebp - 0x230]
xor edi, edi
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, eax
mov dword [ebp - 0x230], eax
sub ecx, esi
mov eax, edi
mov esi, dword [ebp - 0x220]
sbb eax, edi
add dword [ebp - 0x224], ecx
adc esi, eax
cmp dword [ebp - 0x22c], 1
mov dword [ebp - 0x220], esi
jne 0x42040a
mov edi, dword [ebp - 0x21c]
jmp 0x41fdc1
mov ecx, dword [ebp - 0x9c]
xor esi, esi
cmp ecx, 7
jbe 0x42044c
mov edx, dword [ebp - 0xb0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x420442
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42050d
push ecx
push edx
call fcn.00435574
add esp, 8
mov eax, dword [ebp - 0x64]
cmp eax, 7
jbe 0x420495
lea ecx, [eax*2 + 2]
mov eax, dword [ebp - 0x21c]
mov edx, eax
cmp ecx, 0x1000
jb 0x42048b
mov eax, dword [edx - 4]
add ecx, 0x23
sub edx, eax
mov dword [ebp - 0x21c], eax
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x42050d
mov eax, dword [ebp - 0x21c]
push ecx
push eax
call fcn.00435574
add esp, 8
lea ecx, [ebp - 0x140]
call fcn.004347a0
mov dword [ebp - fcn.00434cf0], vtable.Clb184::CVertexBuffer.0
mov dword [ebp - 4], 0xd
mov ecx, dword [ebp - 0x158]
test ecx, ecx
je 0x4204cb
mov dword [ebp - 0x158], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 4], 0xe
mov ecx, dword [ebp - 0x15c]
test ecx, ecx
je 0x4204ec
mov dword [ebp - 0x15c], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
lea ecx, [ebp - 0x98]
call fcn.0041a030
jmp 0x41f80e
push 0x10
push 0x4a468c
push str.Couldnt_create_window
jmp 0x41f803
call fcn.00466af1
call fcn.0040ae60
int3