Function at 0x521bd0
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc
mov eax, dword [0x6480b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MulDiv]
mov ebx, ecx
push edi
push 0x64
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x10]
mov dword [ebx], 0x5fd9cc
push dword [0x651cb4]
mov dword [ebp - 0x58], ebx
push 0x17
mov dword [ebp - 0x6c], eax
call esi
push 0x64
push dword [0x651cb4]
mov dword [ebp - 0x64], eax
push 0x52
call esi
push 0x64
push dword [0x651cb4]
mov dword [ebp - 0x70], eax
push 0x10
call esi
push 0
push 0
push 0
push str.DISPLAY
mov dword [ebp - 0x88], eax
call dword [sym.imp.GDI32.dll_CreateDCW]
push dword [0x65270c]
mov dword [ebp - 0x74], eax
push eax
mov eax, dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x90], eax
call eax
mov dword [ebp - 0x8c], eax
mov eax, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
mov dword [ebp - 0x5c], eax
call eax
mov esi, dword [ebp + 0xc]
cdq
sub eax, edx
mov dword [ebp - 0x60], esi
mov edi, eax
mov eax, esi
sar edi, 1
add edi, 0x64
and eax, 0xf0
mov dword [ebp - 0x50], eax
je 0x521c97
push 0xb
call dword [ebp - 0x5c]
mov ecx, 0xfffffff0
sub ecx, eax
add edi, ecx
push 0xc10
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
mov eax, dword [0x648ecc]
push 0xffffffffffffffff
push dword [ebp - 0x28]
mov dword [ebp - 0x10], 0
push dword [ebp - 0x74]
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x80], eax
call eax
mov ecx, dword [ebp - 0xc]
xorps xmm0, xmm0
add dword [ebp - 8], 0x15
mov dword [0x6526fc], 0
mov dword [ebp - 0x14], 0x10
lea eax, [ecx + 0x1c]
mov dword [ebp - 0x10], 0x10
mov dword [ebp - 0xc], eax
lea eax, [ecx + 0x1d]
mov dword [ebp - 0x40], eax
mov ecx, 0x90c80882
xor eax, eax
mov dword [ebp - 0x44], 0
mov dword [0x652702], eax
test esi, 0x1000
mov esi, dword [sym.imp.USER32.dll_GetDialogBaseUnits]
mov word [0x652700], ax
mov eax, 0x90c80880
cmovne eax, ecx
mov dword [ebp - 0x48], esi
mov dword [0x6526f8], eax
mov eax, dword [ebp - 0x50]
movups xmmword [ebx + 4], xmm0
movups xmmword [ebx + 0x14], xmm0
movups xmmword [ebx + 0x24], xmm0
movups xmmword [ebx + 0x34], xmm0
movups xmmword [ebx + 0x44], xmm0
test eax, eax
je case.0x521d5b.17
add eax, 0xfffffff0
cmp eax, 0x30
ja case.0x521d5b.17
movzx eax, byte [eax + 0x522a38]
jmp dword [eax*4 + 0x522a24]
mov esi, 0x7f03
jmp 0x521d7c
mov esi, 0x7f01
jmp 0x521d7c
mov esi, 0x7f02
jmp 0x521d7c
mov esi, 0x7f04
mov edi, dword [sym.imp.KERNEL32.dll_MulDiv]
push 0x64
push dword [0x651cb4]
push 0x20
call edi
push 0x64
push dword [0x651cb4]
mov dword [ebp - 0x50], eax
push 0x20
call edi
mov edi, dword [ebp - 0x50]
push 0x8000
push eax
push edi
push 1
push esi
push 0
mov dword [ebp - 0x40], eax
call dword [0x648efc]
mov dword [0x6526e8], eax
test eax, eax
jne 0x521dcf
push esi
push eax
call dword [0x648ef8]
mov dword [0x6526e8], eax
test eax, eax
je 0x521e4a
lea ecx, [ebp - 0xa4]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetIconInfo]
test eax, eax
je 0x521e4a
mov esi, dword [0x648dc8]
lea eax, [ebp - 0xbc]
push eax
push 0x18
push dword [ebp - 0x94]
call esi
test eax, eax
jne 0x521e11
lea eax, [ebp - 0xbc]
push eax
push 0x18
push dword [ebp - 0x98]
call esi
test eax, eax
je 0x521e1f
mov edi, dword [ebp - 0xb8]
mov esi, dword [ebp - 0xb4]
jmp 0x521e22
mov esi, dword [ebp - 0x40]
mov eax, dword [ebp - 0x94]
mov ecx, dword [sym.imp.GDI32.dll_DeleteObject]
test eax, eax
je 0x521e3b
push eax
call ecx
mov ecx, dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp - 0x98]
test eax, eax
je 0x521e4d
push eax
call ecx
jmp 0x521e4d
mov esi, dword [ebp - 0x40]
mov eax, dword [ebp - 0xc]
lea ecx, [edi + 8]
add dword [ebp - 0x14], ecx
add eax, ecx
mov dword [ebp - 0xc], eax
add eax, 8
mov dword [ebp - 0x40], eax
lea eax, [esi + 0xa]
push 0x818
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x44], eax
call fcn.00479f06
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x521e86
mov dword [ecx + 0x14], 0x82
jmp 0x521e88
xor ecx, ecx
movzx eax, word [0x652700]
mov dword [ebx + eax*4 + 4], ecx
movzx eax, word [0x652700]
mov edi, dword [ebx + eax*4 + 4]
mov ebx, dword [ebp - 0x48]
mov dword [ebp - 0x68], edi
call ebx
mov esi, eax
shr esi, 0x10
call ebx
movzx eax, ax
movsx ecx, ax
mov eax, 0x20
cdq
idiv ecx
mov dword [edi + 0x14], 0x82
movzx ebx, ax
mov eax, 0x40
cdq
movsx edi, si
idiv edi
push 0x3ff
movzx esi, ax
mov eax, dword [ebp - 0x50]
push 0x5ef904
lea eax, [eax*4 - 0x14]
cdq
idiv ecx
movzx ecx, ax
mov eax, dword [ebp - 0x44]
lea eax, [eax*8 - 0x38]
cdq
idiv edi
mov edi, dword [ebp - 0x68]
movzx eax, ax
mov word [edi + 8], bx
mov word [edi + 0xa], si
mov word [edi + 0xc], cx
mov word [edi + 0xe], ax
mov eax, 0x3e8
mov word [edi + 0x10], ax
lea eax, [edi + 0x18]
push eax
mov dword [edi + 4], 0
mov dword [edi], 0x50000000
call fcn.005d2c75
mov ebx, dword [ebp - 0x58]
xor eax, eax
mov esi, dword [ebp - 0x48]
add esp, 0xc
mov word [edi + 0x816], ax
inc word [0x652700]
push 0x818
call fcn.00479f06
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x521f64
mov dword [ecx + 0x14], 0x82
jmp 0x521f66
xor ecx, ecx
movzx eax, word [0x652700]
mov dword [ebx + eax*4 + 4], ecx
movzx eax, word [0x652700]
mov edi, dword [ebx + eax*4 + 4]
call esi
mov esi, eax
shr esi, 0x10
call dword [ebp - 0x48]
movzx eax, ax
movsx ecx, ax
mov dword [edi + 0x14], 0x82
mov eax, dword [ebp - 0x14]
shl eax, 2
cdq
idiv ecx
movsx esi, si
mov word [edi + 8], ax
mov eax, dword [ebp - 0x10]
shl eax, 3
cdq
idiv esi
push 0x3ff
mov word [edi + 0xa], ax
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
lea eax, [eax*4 + 4]
cdq
idiv ecx
mov ecx, dword [ebp - 0x28]
mov word [edi + 0xc], ax
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
lea eax, [eax*8 + 8]
cdq
idiv esi
test ecx, ecx
mov word [edi + 0xe], ax
mov eax, 0x3e9
mov word [edi + 0x10], ax
mov eax, 0x5ef904
cmovne eax, ecx
mov dword [edi + 4], 0
push eax
lea eax, [edi + 0x18]
mov dword [edi], 0x50000000
push eax
call fcn.005d2c75
mov edx, dword [ebp - 0x60]
xor eax, eax
mov word [edi + 0x816], ax
add esp, 0xc
inc word [0x652700]
mov eax, edx
and eax, 0xf
xor ecx, ecx
mov dword [ebp - 0x54], eax
cmp eax, 8
ja case.0x52202f.6
jmp dword [eax*4 + 0x522a6c]
mov ecx, 1
jmp case.0x52202f.6
mov ecx, 3
jmp case.0x52202f.6
mov ecx, 2
cmp dword [ebp - 0x6c], 0
lea eax, [ecx + 1]
cmove eax, ecx
mov ecx, edx
and ecx, 0x4000
mov dword [ebp - 0x78], ecx
lea ecx, [eax + 1]
cmove ecx, eax
mov eax, edx
and eax, 0x4000000
mov dword [ebp - 0x84], eax
mov eax, ecx
mov dword [ebp - 0x28], eax
je 0x522086
mov dword [ebp - 0x28], eax
test dl, 7
je 0x522086
lea eax, [ecx + 1]
mov dword [ebp - 0x28], eax
mov ecx, edx
and ecx, 0x8000000
mov dword [ebp - 0x4c], ecx
je 0x52209c
test dl, 7
je 0x52209c
inc eax
mov dword [ebp - 0x28], eax
mov eax, edx
mov ecx, 1
and eax, 0x1000000
mov dword [ebp - 0x7c], eax
je 0x5220b5
mov dword [0x652714], ecx
jmp 0x5220d8
test edx, 0x2000000
je 0x5220c5
mov dword [0x652718], ecx
jmp 0x5220d8
mov eax, dword [0x65271c]
test edx, 0x20000000
cmovne eax, ecx
mov dword [0x65271c], eax
mov eax, dword [0x652720]
test edx, 0x40000000
mov esi, dword [ebp - 0x44]
mov edi, dword [ebp - 0x70]
cmovne eax, ecx
cmp dword [ebp - 8], esi
mov ecx, dword [ebp - 0x64]
cmovg esi, dword [ebp - 8]
mov dword [0x652720], eax
add esi, 8
lea eax, [edi + 6]
mov dword [ebp - 0x44], esi
imul eax, dword [ebp - 0x28]
add ecx, esi
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x68], eax
mov eax, edx
and eax, 0xf00
cmp eax, 0x300
ja 0x522147
je 0x522140
test eax, eax
je 0x52215c
cmp eax, 0x100
je 0x522139
cmp eax, 0x200
jne 0x52215c
mov eax, 3
jmp 0x522176
mov eax, 2
jmp 0x522176
mov eax, 4
jmp 0x522176
cmp eax, 0x400
je 0x522171
cmp eax, 0x500
je 0x52216a
cmp eax, 0x600
je 0x522163
mov eax, 1
jmp 0x522176
mov eax, 7
jmp 0x522176
mov eax, 6
jmp 0x522176
mov eax, 5
mov edx, eax
cmp edx, dword [ebp - 0x28]
mov edx, 1
cmova eax, edx
mov dword [0x6526ec], eax
lea eax, [ecx + 0xa]
mov ecx, dword [ebp - 0x68]
add ecx, 0xfffffffb
mov dword [ebp - 0x50], eax
lea eax, [ecx + 0x20]
cmp dword [ebp - 0x40], eax
cmovg eax, dword [ebp - 0x40]
mov dword [ebp - 0x64], eax
sub eax, ecx
mov ecx, dword [ebp - 0x54]
inc eax
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x40], eax
cmp ecx, 8
ja case.0x5221b8.6
jmp dword [ecx*4 + 0x522a90]
mov dword [ebp - 0x38], eax
mov ecx, ebx
mov dword [ebp - 0x34], esi
lea esi, [eax + edi]
mov eax, dword [ebp - 0x3c]
push 0x651cc0
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x38]
push eax
push 1
push 0x80
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x30], esi
call fcn.00522b30
mov dword [0x652728], 1
jmp 0x52259e
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], esi
lea esi, [eax + edi]
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x38]
push 0x651cc0
push eax
push 1
push 0x80
mov ecx, ebx
mov dword [ebp - 0x30], esi
call fcn.00522b30
lea eax, [esi + 6]
mov ecx, ebx
lea esi, [eax + edi]
mov dword [ebp - 0x38], eax
push 0x651d88
lea eax, [ebp - 0x38]
mov dword [ebp - 0x28], esi
push eax
push 2
push 0x80
mov dword [ebp - 0x30], esi
call fcn.00522b30
mov dword [0x652724], 1
jmp 0x52259e
mov dword [ebp - 0x38], eax
mov ecx, ebx
mov dword [ebp - 0x34], esi
lea esi, [eax + edi]
mov eax, dword [ebp - 0x3c]
push 0x652170
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x38]
push eax
push 6
push 0x80
mov dword [ebp - 0x30], esi
call fcn.00522b30
cmp dword [ebp - 0x84], 0
je 0x5222ad
lea eax, [esi + 6]
mov ecx, ebx
lea esi, [eax + edi]
mov dword [ebp - 0x38], eax
push 0x652558
lea eax, [ebp - 0x38]
mov dword [ebp - 0x30], esi
push eax
push 0xc
push 0x80
call fcn.00522b30
lea eax, [esi + 6]
mov ecx, ebx
lea esi, [eax + edi]
mov dword [ebp - 0x38], eax
push 0x652238
lea eax, [ebp - 0x38]
mov dword [ebp - 0x28], esi
push eax
push 7
push 0x80
mov dword [ebp - 0x30], esi
call fcn.00522b30
cmp dword [ebp - 0x4c], 0
je 0x52259e
lea eax, [esi + 6]
mov ecx, ebx
lea esi, [eax + edi]
mov dword [ebp - 0x38], eax
push 0x652620
lea eax, [ebp - 0x38]
mov dword [ebp - 0x28], esi
push eax
push 0xd
push 0x80
mov dword [ebp - 0x30], esi
call fcn.00522b30
jmp 0x52259e
mov dword [ebp - 0x38], eax
mov ecx, ebx
mov dword [ebp - 0x34], esi
lea esi, [eax + edi]
mov eax, dword [ebp - 0x3c]
push 0x652170
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x38]
push eax
push 6
push 0x80
mov dword [ebp - 0x30], esi
call fcn.00522b30
cmp dword [ebp - 0x84], 0
je 0x52235d
lea eax, [esi + 6]
mov ecx, ebx
lea esi, [eax + edi]
mov dword [ebp - 0x38], eax
push 0x652558
lea eax, [ebp - 0x38]
mov dword [ebp - 0x30], esi
push eax
push 0xc
push 0x80
call fcn.00522b30
lea eax, [esi + 6]
mov ecx, ebx
lea esi, [eax + edi]
mov dword [ebp - 0x38], eax
push 0x652238
lea eax, [ebp - 0x38]
mov dword [ebp - 0x30], esi
push eax
push 7
push 0x80
call fcn.00522b30
cmp dword [ebp - 0x4c], 0
je 0x522223
lea eax, [esi + 6]
mov dword [ebp - 0x38], eax
lea esi, [eax + edi]
push 0x652620
lea eax, [ebp - 0x38]
push eax
push 0xd
jmp 0x522214
mov dword [ebp - 0x38], eax
mov ecx, ebx
mov dword [ebp - 0x34], esi
lea esi, [eax + edi]
mov eax, dword [ebp - 0x3c]
push 0x651fe0
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x38]
push eax
push 3
push 0x80
mov dword [ebp - 0x30], esi
call fcn.00522b30
lea eax, [esi + 6]
mov ecx, ebx
lea esi, [eax + edi]
mov dword [ebp - 0x38], eax
push 0x651f18
lea eax, [ebp - 0x38]
mov dword [ebp - 0x30], esi
push eax
push 4
push 0x80
call fcn.00522b30
lea eax, [esi + 6]
mov ecx, ebx
lea esi, [eax + edi]
mov dword [ebp - 0x38], eax
push 0x651e50
lea eax, [ebp - 0x38]
mov dword [ebp - 0x28], esi
push eax
push 5
push 0x80
mov dword [ebp - 0x30], esi
call fcn.00522b30
jmp 0x52259e
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], esi
lea esi, [eax + edi]
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x38]
push 0x651f18
push eax
push 4
jmp 0x522214
mov dword [ebp - 0x38], eax
mov ecx, ebx
mov dword [ebp - 0x34], esi
lea esi, [eax + edi]
mov eax, dword [ebp - 0x3c]
push 0x652300
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x38]
push eax
push 0xb
push 0x80
mov dword [ebp - 0x30], esi
call fcn.00522b30
lea eax, [esi + 6]
mov ecx, ebx
lea esi, [eax + edi]
mov dword [ebp - 0x38], eax
push 0x651fe0
lea eax, [ebp - 0x38]
mov dword [ebp - 0x28], esi
push eax
push 3
push 0x80
mov dword [ebp - 0x30], esi
call fcn.00522b30
jmp 0x52259e
add eax, edi
push 0x818
mov dword [ebp - 0x28], eax
call fcn.00479f06
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x5224ae
mov dword [ecx + 0x14], 0x80
jmp 0x5224b0
xor ecx, ecx
movzx eax, word [0x652700]
mov dword [ebx + eax*4 + 4], ecx
movzx eax, word [0x652700]
mov edi, dword [ebx + eax*4 + 4]
mov ebx, dword [ebp - 0x48]
mov dword [ebp - 0x54], edi
call ebx
mov esi, eax
shr esi, 0x10
call ebx
movzx eax, ax
movsx ebx, ax
mov eax, dword [ebp - 0x40]
shl eax, 2
cdq
idiv ebx
mov dword [edi + 0x14], 0x80
movzx edi, ax
mov eax, dword [ebp - 0x44]
shl eax, 3
cdq
movsx ecx, si
idiv ecx
movzx esi, ax
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x44]
lea eax, [eax*8 + 8]
cdq
idiv ecx
movzx ecx, ax
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x40]
lea eax, [eax*4 + 4]
cdq
idiv ebx
mov ebx, dword [ebp - 0x54]
movzx eax, ax
mov word [ebx + 8], di
mov word [ebx + 0xa], si
mov word [ebx + 0xc], ax
mov eax, 1
mov word [ebx + 0xe], cx
mov word [ebx + 0x10], ax
mov eax, dword [0x65272c]
inc eax
mov dword [ebx + 4], 0
mov dword [0x65272c], eax
mov dword [ebx], 0x50010000
cmp eax, dword [0x6526ec]
jne 0x52256f
mov dword [ebx], 0x50010001
mov dword [0x652730], 1
push 0x3ff
lea eax, [ebx + 0x18]
push 0x651cc0
push eax
call fcn.005d2c75
mov esi, dword [ebp - 0x28]
xor eax, eax
mov edi, dword [ebp - 0x70]
add esp, 0xc
mov word [ebx + 0x816], ax
inc word [0x652700]
mov ebx, dword [ebp - 0x58]
cmp dword [ebp - 0x6c], 0
je 0x5226bc
lea eax, [esi + 6]
mov dword [ebp - 0x4c], eax
add eax, edi
push 0x818
mov dword [ebp - 0x28], eax
call fcn.00479f06
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x5225cf
mov dword [ecx + 0x14], 0x80
jmp 0x5225d1
xor ecx, ecx
movzx eax, word [0x652700]
mov dword [ebx + eax*4 + 4], ecx
movzx eax, word [0x652700]
mov edi, dword [ebx + eax*4 + 4]
mov ebx, dword [ebp - 0x48]
mov dword [ebp - 0x54], edi
call ebx
mov esi, eax
shr esi, 0x10
call ebx
movzx eax, ax
movsx ebx, ax
mov eax, dword [ebp - 0x4c]
shl eax, 2
cdq
idiv ebx
mov dword [edi + 0x14], 0x80
movzx edi, ax
mov eax, dword [ebp - 0x44]
shl eax, 3
mov dword [ebp - 0x40], eax
cdq
movsx ecx, si
idiv ecx
movzx esi, ax
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x44]
lea eax, [eax*8 + 8]
cdq
idiv ecx
movzx ecx, ax
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x4c]
lea eax, [eax*4 + 4]
cdq
idiv ebx
mov ebx, dword [ebp - 0x54]
movzx eax, ax
mov word [ebx + 8], di
mov word [ebx + 0xa], si
mov word [ebx + 0xc], ax
mov eax, 0xe
mov word [ebx + 0xe], cx
mov word [ebx + 0x10], ax
mov eax, dword [0x65272c]
inc eax
mov dword [ebx + 4], 0
mov dword [0x65272c], eax
mov dword [ebx], 0x50010000
cmp eax, dword [0x6526ec]
jne 0x522693
mov dword [ebx], 0x50010001
mov dword [0x652730], 0xe
push 0x3ff
push dword [ebp - 0x6c]
lea eax, [ebx + 0x18]
push eax
call fcn.005d2c75
xor eax, eax
add esp, 0xc
mov word [ebx + 0x816], ax
inc word [0x652700]
mov ebx, dword [ebp - 0x40]
jmp 0x5226c9
mov eax, dword [ebp - 0x44]
lea ebx, [eax*8]
mov dword [ebp - 0x40], ebx
cmp dword [ebp - 0x78], 0
je 0x5227ea
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x70]
add ecx, 6
add eax, ecx
mov dword [ebp - 0x4c], ecx
push 0x818
mov dword [ebp - 0x78], eax
call fcn.00479f06
mov edx, eax
add esp, 4
test edx, edx
je 0x522700
mov dword [edx + 0x14], 0x80
jmp 0x522705
xor edx, edx
mov dword [ebp - 0x40], ebx
movzx eax, word [0x652700]
mov ecx, dword [ebp - 0x58]
mov ebx, dword [ebp - 0x48]
mov dword [ecx + eax*4 + 4], edx
movzx eax, word [0x652700]
mov edi, dword [ecx + eax*4 + 4]
mov dword [ebp - 0x54], edi
call ebx
mov esi, eax
shr esi, 0x10
call ebx
movzx eax, ax
movsx ebx, ax
mov eax, dword [ebp - 0x4c]
shl eax, 2
cdq
idiv ebx
mov dword [edi + 0x14], 0x80
movzx edi, ax
mov eax, dword [ebp - 0x40]
cdq
movsx ecx, si
idiv ecx
movzx esi, ax
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x44]
lea eax, [eax*8 + 8]
cdq
idiv ecx
movzx ecx, ax
mov eax, dword [ebp - 0x78]
sub eax, dword [ebp - 0x4c]
lea eax, [eax*4 + 4]
cdq
idiv ebx
mov ebx, dword [ebp - 0x54]
movzx eax, ax
mov word [ebx + 8], di
mov word [ebx + 0xa], si
mov word [ebx + 0xc], ax
mov eax, 0x12c
mov word [ebx + 0xe], cx
mov word [ebx + 0x10], ax
mov eax, dword [0x65272c]
inc eax
mov dword [ebx + 4], 0
mov dword [0x65272c], eax
mov dword [ebx], 0x50010000
cmp eax, dword [0x6526ec]
jne 0x5227c4
mov dword [ebx], 0x50010001
mov dword [0x652730], 0x12c
push 0x3ff
lea eax, [ebx + 0x18]
push 0x6520a8
push eax
call fcn.005d2c75
xor eax, eax
add esp, 0xc
mov word [ebx + 0x816], ax
inc word [0x652700]
push 0
call dword [ebp - 0x5c]
mov esi, dword [ebp - 0x60]
mov ecx, eax
mov edi, dword [ebp - 0x88]
mov eax, 0x55555556
imul ecx
mov dword [ebp - 0x20], 0
mov eax, edx
mov dword [ebp - 0x24], 0
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], eax
test esi, 0x23000000
je 0x522995
mov ebx, dword [ebp - 0x3c]
add ebx, 0xc
cmp dword [ebp - 0x7c], 0
mov dword [ebp - 0x60], ebx
je 0x52283e
mov eax, 0x6523c8
jmp 0x522854
test esi, 0x2000000
jne 0x52284f
mov eax, dword [0x651cb0]
test eax, eax
jne 0x522859
mov eax, 0x652490
mov dword [0x651cb0], eax
push 0xc20
lea ecx, [ebp - 0x24]
push ecx
push 0xffffffffffffffff
push eax
push dword [ebp - 0x74]
call dword [ebp - 0x80]
mov ecx, dword [ebp - 0x1c]
mov eax, 0x55555556
sub ecx, dword [ebp - 0x24]
imul ecx
add ecx, 0x11
mov eax, edx
shr eax, 0x1f
add eax, edx
add eax, ecx
mov dword [ebp - 0x5c], eax
lea eax, [ebx + edi]
mov dword [ebp - 0x3c], eax
mov eax, dword [0x651cb0]
push 0x818
mov dword [ebp - 0x7c], eax
call fcn.00479f06
mov edx, eax
add esp, 4
test edx, edx
je 0x5228b1
mov dword [edx + 0x14], 0x80
jmp 0x5228b3
xor edx, edx
movzx eax, word [0x652700]
mov ecx, dword [ebp - 0x58]
mov ebx, dword [ebp - 0x48]
mov dword [ecx + eax*4 + 4], edx
movzx eax, word [0x652700]
mov edi, dword [ecx + eax*4 + 4]
mov dword [ebp - 0x80], edi
call ebx
mov esi, eax
shr esi, 0x10
call ebx
movzx eax, ax
movsx ebx, ax
mov eax, 0x44
cdq
idiv ebx
mov dword [edi + 0x14], 0x80
movzx edi, ax
mov eax, dword [ebp - 0x60]
shl eax, 3
cdq
movsx ecx, si
idiv ecx
push 0x3ff
movzx esi, ax
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x60]
lea eax, [eax*8 + 8]
cdq
idiv ecx
movzx ecx, ax
mov eax, dword [ebp - 0x5c]
lea eax, [eax*4 - 0x40]
cdq
idiv ebx
mov ebx, dword [ebp - 0x80]
movzx eax, ax
mov word [ebx + 8], di
mov word [ebx + 0xa], si
mov word [ebx + 0xc], ax
mov eax, 0x15b3
mov word [ebx + 0xe], cx
mov ecx, 0x5ef904
mov word [ebx + 0x10], ax
mov eax, dword [ebp - 0x7c]
test eax, eax
mov dword [ebx + 4], 0
cmovne ecx, eax
mov dword [ebx], 0x50010003
push ecx
lea eax, [ebx + 0x18]
push eax
call fcn.005d2c75
xor eax, eax
add esp, 0xc
mov word [ebx + 0x816], ax
mov ebx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x3c]
inc word [0x652700]
add eax, 8
mov dword [ebp - 0x50], eax
lea eax, [ebx + 1]
cmp eax, dword [ebp - 0x5c]
cmovl ebx, dword [ebp - 0x5c]
jmp 0x522998
mov ebx, dword [ebp - 0x64]
mov esi, dword [ebp - 0x68]
add esi, 0xa
call dword [ebp - 0x48]
mov edi, eax
shr edi, 0x10
call dword [ebp - 0x48]
movzx ecx, ax
xor eax, eax
cmp ebx, esi
mov dword [0x652702], eax
movsx ecx, cx
cmovge esi, ebx
mov dword [0x652710], 0x3e9
push dword [ebp - 0x8c]
mov ebx, dword [ebp - 0x74]
push ebx
lea eax, [esi*4 + 4]
cdq
idiv ecx
mov ecx, dword [ebp - 0x3c]
cmp ecx, dword [ebp - 0x50]
mov word [0x652706], ax
lea eax, [ecx + 0x10]
movsx ecx, di
cmovl eax, dword [ebp - 0x50]
lea eax, [eax*8 + 8]
cdq
idiv ecx
mov word [0x652708], ax
call dword [ebp - 0x90]
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x58]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0058bb64
mov esp, ebp
pop ebp
ret 0xc