Function at 0x436a80
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc
mov eax, dword [0x46e818]
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], 0x45ccb4
push dword [0x473a94]
mov dword [ebp - 0x58], ebx
push 0x17
mov dword [ebp - 0x6c], eax
call esi
push 0x64
push dword [0x473a94]
mov dword [ebp - 0x64], eax
push 0x52
call esi
push 0x64
push dword [0x473a94]
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 [0x4744ec]
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 0x436b47
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 [sym.imp.USER32.dll_DrawTextW]
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 [0x4744dc], 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 [0x4744e2], eax
test esi, 0x1000
mov esi, dword [sym.imp.USER32.dll_GetDialogBaseUnits]
mov word [0x4744e0], ax
mov eax, 0x90c80880
cmovne eax, ecx
mov dword [ebp - 0x48], esi
mov dword [0x4744d8], 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.0x436c0b.17
add eax, 0xfffffff0
cmp eax, 0x30
ja case.0x436c0b.17
movzx eax, byte [eax + 0x4378e8]
jmp dword [eax*4 + 0x4378d4]
mov esi, 0x7f03
jmp 0x436c2c
mov esi, 0x7f01
jmp 0x436c2c
mov esi, 0x7f02
jmp 0x436c2c
mov esi, 0x7f04
mov edi, dword [sym.imp.KERNEL32.dll_MulDiv]
push 0x64
push dword [0x473a94]
push 0x20
call edi
push 0x64
push dword [0x473a94]
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 [sym.imp.USER32.dll_LoadImageW]
mov dword [0x4744c8], eax
test eax, eax
jne 0x436c7f
push esi
push eax
call dword [0x46f11c]
mov dword [0x4744c8], eax
test eax, eax
je 0x436cfa
lea ecx, [ebp - 0xa4]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetIconInfo]
test eax, eax
je 0x436cfa
mov esi, dword [0x46f060]
lea eax, [ebp - 0xbc]
push eax
push 0x18
push dword [ebp - 0x94]
call esi
test eax, eax
jne 0x436cc1
lea eax, [ebp - 0xbc]
push eax
push 0x18
push dword [ebp - 0x98]
call esi
test eax, eax
je 0x436ccf
mov edi, dword [ebp - 0xb8]
mov esi, dword [ebp - 0xb4]
jmp 0x436cd2
mov esi, dword [ebp - 0x40]
mov eax, dword [ebp - 0x94]
mov ecx, dword [sym.imp.GDI32.dll_DeleteObject]
test eax, eax
je 0x436ceb
push eax
call ecx
mov ecx, dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp - 0x98]
test eax, eax
je 0x436cfd
push eax
call ecx
jmp 0x436cfd
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.00401628
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x436d36
mov dword [ecx + 0x14], 0x82
jmp 0x436d38
xor ecx, ecx
movzx eax, word [0x4744e0]
mov dword [ebx + eax*4 + 4], ecx
movzx eax, word [0x4744e0]
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 0x459ca4
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.00447024
mov ebx, dword [ebp - 0x58]
xor eax, eax
mov esi, dword [ebp - 0x48]
add esp, 0xc
mov word [edi + 0x816], ax
inc word [0x4744e0]
push 0x818
call fcn.00401628
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x436e14
mov dword [ecx + 0x14], 0x82
jmp 0x436e16
xor ecx, ecx
movzx eax, word [0x4744e0]
mov dword [ebx + eax*4 + 4], ecx
movzx eax, word [0x4744e0]
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, 0x459ca4
cmovne eax, ecx
mov dword [edi + 4], 0
push eax
lea eax, [edi + 0x18]
mov dword [edi], 0x50000000
push eax
call fcn.00447024
mov edx, dword [ebp - 0x60]
xor eax, eax
mov word [edi + 0x816], ax
add esp, 0xc
inc word [0x4744e0]
mov eax, edx
and eax, 0xf
xor ecx, ecx
mov dword [ebp - 0x54], eax
cmp eax, 8
ja case.0x436edf.6
jmp dword [eax*4 + 0x43791c]
mov ecx, 1
jmp case.0x436edf.6
mov ecx, 3
jmp case.0x436edf.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 0x436f36
mov dword [ebp - 0x28], eax
test dl, 7
je 0x436f36
lea eax, [ecx + 1]
mov dword [ebp - 0x28], eax
mov ecx, edx
and ecx, 0x8000000
mov dword [ebp - 0x4c], ecx
je 0x436f4c
test dl, 7
je 0x436f4c
inc eax
mov dword [ebp - 0x28], eax
mov eax, edx
mov ecx, 1
and eax, 0x1000000
mov dword [ebp - 0x7c], eax
je 0x436f65
mov dword [0x4744f4], ecx
jmp 0x436f88
test edx, 0x2000000
je 0x436f75
mov dword [0x4744f8], ecx
jmp 0x436f88
mov eax, dword [0x4744fc]
test edx, 0x20000000
cmovne eax, ecx
mov dword [0x4744fc], eax
mov eax, dword [0x474500]
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 [0x474500], 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 0x436ff7
je 0x436ff0
test eax, eax
je 0x43700c
cmp eax, 0x100
je 0x436fe9
cmp eax, 0x200
jne 0x43700c
mov eax, 3
jmp 0x437026
mov eax, 2
jmp 0x437026
mov eax, 4
jmp 0x437026
cmp eax, 0x400
je 0x437021
cmp eax, 0x500
je 0x43701a
cmp eax, 0x600
je 0x437013
mov eax, 1
jmp 0x437026
mov eax, 7
jmp 0x437026
mov eax, 6
jmp 0x437026
mov eax, 5
mov edx, eax
cmp edx, dword [ebp - 0x28]
mov edx, 1
cmova eax, edx
mov dword [0x4744cc], 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.0x437068.6
jmp dword [ecx*4 + 0x437940]
mov dword [ebp - 0x38], eax
mov ecx, ebx
mov dword [ebp - 0x34], esi
lea esi, [eax + edi]
mov eax, dword [ebp - 0x3c]
push 0x473aa0
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.004379e0
mov dword [0x474508], 1
jmp 0x43744e
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 0x473aa0
push eax
push 1
push 0x80
mov ecx, ebx
mov dword [ebp - 0x30], esi
call fcn.004379e0
lea eax, [esi + 6]
mov ecx, ebx
lea esi, [eax + edi]
mov dword [ebp - 0x38], eax
push 0x473b68
lea eax, [ebp - 0x38]
mov dword [ebp - 0x28], esi
push eax
push 2
push 0x80
mov dword [ebp - 0x30], esi
call fcn.004379e0
mov dword [0x474504], 1
jmp 0x43744e
mov dword [ebp - 0x38], eax
mov ecx, ebx
mov dword [ebp - 0x34], esi
lea esi, [eax + edi]
mov eax, dword [ebp - 0x3c]
push 0x473f50
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x38]
push eax
push 6
push 0x80
mov dword [ebp - 0x30], esi
call fcn.004379e0
cmp dword [ebp - 0x84], 0
je 0x43715d
lea eax, [esi + 6]
mov ecx, ebx
lea esi, [eax + edi]
mov dword [ebp - 0x38], eax
push 0x474338
lea eax, [ebp - 0x38]
mov dword [ebp - 0x30], esi
push eax
push 0xc
push 0x80
call fcn.004379e0
lea eax, [esi + 6]
mov ecx, ebx
lea esi, [eax + edi]
mov dword [ebp - 0x38], eax
push 0x474018
lea eax, [ebp - 0x38]
mov dword [ebp - 0x28], esi
push eax
push 7
push 0x80
mov dword [ebp - 0x30], esi
call fcn.004379e0
cmp dword [ebp - 0x4c], 0
je 0x43744e
lea eax, [esi + 6]
mov ecx, ebx
lea esi, [eax + edi]
mov dword [ebp - 0x38], eax
push 0x474400
lea eax, [ebp - 0x38]
mov dword [ebp - 0x28], esi
push eax
push 0xd
push 0x80
mov dword [ebp - 0x30], esi
call fcn.004379e0
jmp 0x43744e
mov dword [ebp - 0x38], eax
mov ecx, ebx
mov dword [ebp - 0x34], esi
lea esi, [eax + edi]
mov eax, dword [ebp - 0x3c]
push 0x473f50
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x38]
push eax
push 6
push 0x80
mov dword [ebp - 0x30], esi
call fcn.004379e0
cmp dword [ebp - 0x84], 0
je 0x43720d
lea eax, [esi + 6]
mov ecx, ebx
lea esi, [eax + edi]
mov dword [ebp - 0x38], eax
push 0x474338
lea eax, [ebp - 0x38]
mov dword [ebp - 0x30], esi
push eax
push 0xc
push 0x80
call fcn.004379e0
lea eax, [esi + 6]
mov ecx, ebx
lea esi, [eax + edi]
mov dword [ebp - 0x38], eax
push 0x474018
lea eax, [ebp - 0x38]
mov dword [ebp - 0x30], esi
push eax
push 7
push 0x80
call fcn.004379e0
cmp dword [ebp - 0x4c], 0
je 0x4370d3
lea eax, [esi + 6]
mov dword [ebp - 0x38], eax
lea esi, [eax + edi]
push 0x474400
lea eax, [ebp - 0x38]
push eax
push 0xd
jmp 0x4370c4
mov dword [ebp - 0x38], eax
mov ecx, ebx
mov dword [ebp - 0x34], esi
lea esi, [eax + edi]
mov eax, dword [ebp - 0x3c]
push 0x473dc0
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x38]
push eax
push 3
push 0x80
mov dword [ebp - 0x30], esi
call fcn.004379e0
lea eax, [esi + 6]
mov ecx, ebx
lea esi, [eax + edi]
mov dword [ebp - 0x38], eax
push 0x473cf8
lea eax, [ebp - 0x38]
mov dword [ebp - 0x30], esi
push eax
push 4
push 0x80
call fcn.004379e0
lea eax, [esi + 6]
mov ecx, ebx
lea esi, [eax + edi]
mov dword [ebp - 0x38], eax
push 0x473c30
lea eax, [ebp - 0x38]
mov dword [ebp - 0x28], esi
push eax
push 5
push 0x80
mov dword [ebp - 0x30], esi
call fcn.004379e0
jmp 0x43744e
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 0x473cf8
push eax
push 4
jmp 0x4370c4
mov dword [ebp - 0x38], eax
mov ecx, ebx
mov dword [ebp - 0x34], esi
lea esi, [eax + edi]
mov eax, dword [ebp - 0x3c]
push 0x4740e0
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x38]
push eax
push 0xb
push 0x80
mov dword [ebp - 0x30], esi
call fcn.004379e0
lea eax, [esi + 6]
mov ecx, ebx
lea esi, [eax + edi]
mov dword [ebp - 0x38], eax
push 0x473dc0
lea eax, [ebp - 0x38]
mov dword [ebp - 0x28], esi
push eax
push 3
push 0x80
mov dword [ebp - 0x30], esi
call fcn.004379e0
jmp 0x43744e
add eax, edi
push 0x818
mov dword [ebp - 0x28], eax
call fcn.00401628
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x43735e
mov dword [ecx + 0x14], 0x80
jmp 0x437360
xor ecx, ecx
movzx eax, word [0x4744e0]
mov dword [ebx + eax*4 + 4], ecx
movzx eax, word [0x4744e0]
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 [0x47450c]
inc eax
mov dword [ebx + 4], 0
mov dword [0x47450c], eax
mov dword [ebx], 0x50010000
cmp eax, dword [0x4744cc]
jne 0x43741f
mov dword [ebx], 0x50010001
mov dword [0x474510], 1
push 0x3ff
lea eax, [ebx + 0x18]
push 0x473aa0
push eax
call fcn.00447024
mov esi, dword [ebp - 0x28]
xor eax, eax
mov edi, dword [ebp - 0x70]
add esp, 0xc
mov word [ebx + 0x816], ax
inc word [0x4744e0]
mov ebx, dword [ebp - 0x58]
cmp dword [ebp - 0x6c], 0
je 0x43756c
lea eax, [esi + 6]
mov dword [ebp - 0x4c], eax
add eax, edi
push 0x818
mov dword [ebp - 0x28], eax
call fcn.00401628
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x43747f
mov dword [ecx + 0x14], 0x80
jmp 0x437481
xor ecx, ecx
movzx eax, word [0x4744e0]
mov dword [ebx + eax*4 + 4], ecx
movzx eax, word [0x4744e0]
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 [0x47450c]
inc eax
mov dword [ebx + 4], 0
mov dword [0x47450c], eax
mov dword [ebx], 0x50010000
cmp eax, dword [0x4744cc]
jne 0x437543
mov dword [ebx], 0x50010001
mov dword [0x474510], 0xe
push 0x3ff
push dword [ebp - 0x6c]
lea eax, [ebx + 0x18]
push eax
call fcn.00447024
xor eax, eax
add esp, 0xc
mov word [ebx + 0x816], ax
inc word [0x4744e0]
mov ebx, dword [ebp - 0x40]
jmp 0x437579
mov eax, dword [ebp - 0x44]
lea ebx, [eax*8]
mov dword [ebp - 0x40], ebx
cmp dword [ebp - 0x78], 0
je 0x43769a
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.00401628
mov edx, eax
add esp, 4
test edx, edx
je 0x4375b0
mov dword [edx + 0x14], 0x80
jmp 0x4375b5
xor edx, edx
mov dword [ebp - 0x40], ebx
movzx eax, word [0x4744e0]
mov ecx, dword [ebp - 0x58]
mov ebx, dword [ebp - 0x48]
mov dword [ecx + eax*4 + 4], edx
movzx eax, word [0x4744e0]
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 [0x47450c]
inc eax
mov dword [ebx + 4], 0
mov dword [0x47450c], eax
mov dword [ebx], 0x50010000
cmp eax, dword [0x4744cc]
jne 0x437674
mov dword [ebx], 0x50010001
mov dword [0x474510], 0x12c
push 0x3ff
lea eax, [ebx + 0x18]
push 0x473e88
push eax
call fcn.00447024
xor eax, eax
add esp, 0xc
mov word [ebx + 0x816], ax
inc word [0x4744e0]
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 0x437845
mov ebx, dword [ebp - 0x3c]
add ebx, 0xc
cmp dword [ebp - 0x7c], 0
mov dword [ebp - 0x60], ebx
je 0x4376ee
mov eax, 0x4741a8
jmp 0x437704
test esi, 0x2000000
jne 0x4376ff
mov eax, dword [0x473a90]
test eax, eax
jne 0x437709
mov eax, 0x474270
mov dword [0x473a90], 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 [0x473a90]
push 0x818
mov dword [ebp - 0x7c], eax
call fcn.00401628
mov edx, eax
add esp, 4
test edx, edx
je 0x437761
mov dword [edx + 0x14], 0x80
jmp 0x437763
xor edx, edx
movzx eax, word [0x4744e0]
mov ecx, dword [ebp - 0x58]
mov ebx, dword [ebp - 0x48]
mov dword [ecx + eax*4 + 4], edx
movzx eax, word [0x4744e0]
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, 0x459ca4
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.00447024
xor eax, eax
add esp, 0xc
mov word [ebx + 0x816], ax
mov ebx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x3c]
inc word [0x4744e0]
add eax, 8
mov dword [ebp - 0x50], eax
lea eax, [ebx + 1]
cmp eax, dword [ebp - 0x5c]
cmovl ebx, dword [ebp - 0x5c]
jmp 0x437848
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 [0x4744e2], eax
movsx ecx, cx
cmovge esi, ebx
mov dword [0x4744f0], 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 [0x4744e6], ax
lea eax, [ecx + 0x10]
movsx ecx, di
cmovl eax, dword [ebp - 0x50]
lea eax, [eax*8 + 8]
cdq
idiv ecx
mov word [0x4744e8], 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.00442e5e
mov esp, ebp
pop ebp
ret 0xc