Function at 0x4668a0
Capabilities:
Access peb ldr_data
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b8378
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa4
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov eax, esi
mov ecx, dword [eax]
mov dword [esp + 0x54], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x58], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x5c], ecx
lea ecx, [esp + 0x44]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x60], edx
call fcn.00467a50
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
lea eax, [esp + 0x34]
push 0
mov edi, dword [ebx + 0x2c]
push eax
lea edx, [esp + 0x2c]
push ecx
push edx
mov dword [esp + 0xc8], 0
mov dword [esp + 0x30], edi
call fcn.00460650
mov ecx, dword [eax]
add esp, 0x10
mov dword [esp + 0x34], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x38], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x3c], ecx
lea ecx, [esp + 0x54]
mov edx, dword [eax + 0xc]
lea eax, [esp + 0x34]
mov dword [esp + 0x40], edx
push eax
lea edx, [esp + 0x58]
push ecx
push edx
call dword [sym.imp.USER32.dll_IntersectRect]
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x466971
mov dword [esp + 0x44], vtable.CGdiObject.0
mov dword [esp + 0xb8], 1
jmp 0x467269
mov eax, dword [ebp + 0x10]
mov cl, byte [eax + 4]
movsx edx, cl
add edx, 0xfffffffb
cmp edx, 0x21
ja case.0x466986.16
jmp dword [edx*4 + 0x467288]
mov esi, dword [eax + 0x1e]
mov dword [esp + 0x24], ebx
push esi
mov cl, byte [esi + 0x19]
mov edx, dword [esi + 0x1b]
mov al, byte [esi + 0x18]
mov byte [esp + 0x2c], cl
mov dword [esp + 0x2e], edx
lea ecx, [esp + 0x58]
lea edx, [esp + 0x94]
push ecx
push edx
mov byte [esp + 0x35], al
call fcn.00460450
mov ecx, dword [eax]
add esp, 0xc
mov dword [esp + 0x34], ecx
xor ebx, ebx
mov edx, dword [eax + 4]
mov dword [esp + 0x38], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x3c], ecx
lea ecx, [esp + 0x4c]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x40], edx
mov eax, dword [esi + 0x1b]
push eax
push ebx
push ebx
call fcn.004ae0b5
mov ecx, dword [esi + 0x1b]
mov byte [esp + 0xb8], 2
push ecx
lea ecx, [esp + 0x68]
call fcn.004ae105
lea edx, [esp + 0x4c]
mov ecx, edi
push edx
mov byte [esp + 0xbc], 3
call fcn.004ad7e9
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x64]
push eax
mov ecx, edi
call fcn.004ad7e9
mov word [0x4d6ccc], bx
mov ecx, dword [esi + 0x14]
dec ecx
mov dword [esp + 0x18], eax
test ecx, ecx
jle 0x466b0b
mov edi, dword [esi + 0x27]
mov edx, dword [esi + 0x1f]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x34]
mov eax, dword [edi + ebx*8]
sub eax, edx
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fmul qword [esi + 0x2b]
call fcn.00496fa4
mov ecx, dword [esp + 0x10]
mov edx, dword [edi + ebx*8 + 4]
add eax, ecx
mov ecx, dword [esi + 0x23]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x38]
sub edx, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], edx
fild dword [esp + 0x1c]
fmul qword [esi + 0x33]
call fcn.00496fa4
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x34]
add eax, ecx
mov dword [esp + 0x74], eax
mov eax, dword [edi + ebx*8 + 8]
sub eax, edx
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
fmul qword [esi + 0x2b]
call fcn.00496fa4
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x38]
add eax, ecx
mov ecx, dword [edi + ebx*8 + 0xc]
sub ecx, edx
mov dword [esp + 0x78], eax
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
fmul qword [esi + 0x33]
call fcn.00496fa4
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x24]
add eax, ecx
mov ecx, dword [esp + 0x74]
push edx
mov edx, dword [esp + 0x74]
push 0x467620
push eax
mov eax, dword [esp + 0x84]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_LineDDA]
mov eax, dword [esi + 0x14]
inc ebx
dec eax
cmp ebx, eax
jl 0x466a3b
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x6c]
push ecx
mov ecx, edi
call fcn.004ad7e9
mov edx, dword [esp + 0x18]
mov ecx, edi
push edx
call fcn.004ad7e9
mov esi, vtable.CGdiObject.0
mov word [0x4d6ccc], 0
mov dword [esp + 0x64], esi
lea ecx, [esp + 0x64]
mov byte [esp + 0xb8], 4
call fcn.004ae09f
mov dword [esp + 0x4c], esi
lea ecx, [esp + 0x4c]
mov byte [esp + 0xb8], 5
call fcn.004ae09f
jmp case.0x466986.16
mov eax, dword [eax + 0x1e]
movsx edx, byte [eax + 0x26]
mov ecx, dword [eax + 0x27]
push ecx
push edx
movsx ecx, byte [eax + 0x2c]
movsx edx, byte [eax + 0x2b]
mov ecx, dword [ecx*4 + 0x4d0aa0]
mov esi, dword [edx*4 + 0x4d0a88]
movsx edx, byte [eax + 0x24]
or ecx, esi
push ecx
push edx
movsx ecx, byte [eax + 0x25]
mov edx, dword [eax + 0x20]
push ecx
mov ecx, dword [eax + 0x1c]
push edx
mov edx, dword [eax + 0x18]
mov eax, dword [eax + 0x14]
push ecx
push edx
push eax
mov ecx, ebx
call fcn.004316c0
jmp case.0x466986.16
mov eax, dword [eax + 0x1e]
movsx edx, byte [eax + 0x2f]
lea ecx, [eax + 0x30]
push ecx
mov ecx, dword [eax + 0x2b]
push edx
mov edx, dword [eax + 0x27]
push ecx
push edx
movsx ecx, byte [eax + 0x26]
movsx edx, byte [eax + 0x24]
push ecx
mov ecx, dword [eax + 0x20]
push 0
push edx
mov edx, dword [eax + 0x1c]
push ecx
mov ecx, dword [eax + 0x18]
push edx
mov edx, dword [eax + 0x14]
push ecx
push edx
mov ecx, ebx
call fcn.00438750
jmp case.0x466986.16
mov eax, dword [eax + 0x1e]
movsx edx, byte [eax + 0x2f]
lea ecx, [eax + 0x30]
push ecx
mov ecx, dword [eax + 0x2b]
push edx
mov edx, dword [eax + 0x27]
push ecx
push edx
movsx ecx, byte [eax + 0x26]
movsx edx, byte [eax + 0x24]
push ecx
mov ecx, dword [eax + 0x20]
push 0
push edx
mov edx, dword [eax + 0x1c]
push 0
push ecx
mov ecx, dword [eax + 0x18]
push edx
mov edx, dword [eax + 0x14]
push ecx
push edx
mov ecx, ebx
call fcn.00438240
jmp case.0x466986.16
mov eax, dword [eax + 0x1e]
movsx ecx, byte [eax + 0x48]
push ecx
lea edx, [eax + 0x30]
movsx ecx, byte [eax + 0x2f]
push edx
mov edx, dword [eax + 0x2b]
push ecx
mov ecx, dword [eax + 0x27]
push edx
push ecx
movsx edx, byte [eax + 0x26]
movsx ecx, byte [eax + 0x24]
push edx
mov edx, dword [eax + 0x20]
push 0
push ecx
mov ecx, dword [eax + 0x1c]
push edx
mov edx, dword [eax + 0x18]
mov eax, dword [eax + 0x14]
push ecx
push edx
push eax
mov ecx, ebx
call fcn.004385e0
jmp case.0x466986.16
mov ebx, dword [eax + 0x1e]
cmp cl, 0x24
jne 0x466c90
mov eax, dword [ebx + 0x9a]
test eax, eax
je 0x466c90
mov dword [esp + 0x44], vtable.CGdiObject.0
mov dword [esp + 0xb8], 6
jmp 0x467269
mov ecx, dword [ebx + 0x48]
movsx eax, word [ecx + 0xc]
mov dword [esp + 0x10], eax
lea esi, [eax*8 + 0xe]
push esi
call fcn.004970a0
mov ecx, esi
mov esi, dword [ebx + 0x48]
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [esp + 0x18], eax
and ecx, 3
lea eax, [esp + 0x58]
rep movsb byte es:[edi], byte [esi]
push ebx
lea ecx, [esp + 0x88]
push eax
push ecx
call fcn.00460520
mov edx, eax
add esp, 0x10
mov eax, dword [edx]
mov dword [esp + 0x34], eax
mov ecx, dword [edx + 4]
mov dword [esp + 0x38], ecx
mov ecx, dword [edx + 8]
mov dword [esp + 0x3c], ecx
mov edx, dword [edx + 0xc]
mov dword [esp + 0x40], edx
mov ecx, dword [ebx + 0x48]
mov edx, dword [ecx + 2]
sub edx, eax
mov dword [esp + 0x18], edx
fild dword [esp + 0x18]
fmul qword [ebx + 0x4d]
call fcn.00496fa4
mov esi, dword [ebx + 0x14]
mov edi, dword [esp + 0x14]
add eax, esi
mov dword [edi + 2], eax
mov eax, dword [ebx + 0x48]
mov edx, dword [esp + 0x38]
mov ecx, dword [eax + 6]
sub ecx, edx
mov dword [esp + 0x18], ecx
fild dword [esp + 0x18]
fmul qword [ebx + 0x55]
call fcn.00496fa4
mov ecx, dword [ebx + 0x18]
xor esi, esi
add eax, ecx
mov dword [edi + 6], eax
mov eax, dword [esp + 0x10]
test eax, eax
jle 0x466da1
add edi, 0x12
mov edx, dword [ebx + 0x48]
mov eax, dword [edx + esi*8 + 0xe]
mov edx, dword [esp + 0x34]
sub eax, edx
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fmul qword [ebx + 0x4d]
call fcn.00496fa4
add eax, dword [ebx + 0x14]
mov dword [edi - 4], eax
mov ecx, dword [ebx + 0x48]
mov eax, dword [esp + 0x38]
mov edx, dword [ecx + esi*8 + 0x12]
sub edx, eax
mov dword [esp + 0x18], edx
fild dword [esp + 0x18]
fmul qword [ebx + 0x55]
call fcn.00496fa4
mov ecx, dword [ebx + 0x18]
add edi, 8
add eax, ecx
inc esi
mov dword [edi - 8], eax
mov eax, dword [esp + 0x10]
cmp esi, eax
jl 0x466d49
mov edi, dword [esp + 0x14]
mov eax, dword [ebp + 0x10]
mov al, byte [eax + 4]
cmp al, 0x1c
je 0x466daf
cmp al, 0x24
jne 0x466db5
cmp dword [ebx + 0x6e], 3
je 0x466df4
mov ecx, dword [ebx + 0x20]
mov edx, dword [ebx + 0x1c]
push ecx
mov ecx, dword [ebx + 0x2b]
lea eax, [ebx + 0x30]
push edx
mov edx, dword [ebx + 0x27]
push eax
movsx eax, byte [ebx + 0x4c]
push 3
push ecx
movsx ecx, byte [ebx + 0x25]
push edx
mov edx, dword [eax*4 + 0x4d0aa0]
mov eax, dword [ecx*4 + 0x4d0a88]
mov ecx, dword [ebp + 0xc]
or edx, eax
push 3
movsx eax, byte [ebx + 0x24]
push edx
push eax
push edi
call fcn.00438920
push edi
call fcn.00496fcb
add esp, 4
jmp case.0x466986.16
mov eax, dword [eax + 0x1e]
mov ecx, dword [eax + 0x27]
movsx edx, byte [eax + 0x26]
fild dword [eax + 0x2f]
push ecx
push edx
movsx ecx, byte [eax + 0x24]
push 0
push ecx
sub esp, 8
mov edx, dword [eax + 0x20]
mov ecx, dword [eax + 0x1c]
fstp qword [esp]
fild dword [eax + 0x2b]
sub esp, 8
fstp qword [esp]
push 0
push edx
mov edx, dword [eax + 0x18]
mov eax, dword [eax + 0x14]
push ecx
push edx
push eax
mov ecx, ebx
call fcn.004381d0
jmp case.0x466986.16
mov eax, dword [eax + 0x1e]
movsx edx, byte [eax + 0x2f]
lea ecx, [eax + 0x30]
push ecx
mov ecx, dword [eax + 0x2b]
push edx
mov edx, dword [eax + 0x27]
push ecx
push edx
movsx ecx, byte [eax + 0x26]
movsx edx, byte [eax + 0x24]
push ecx
mov ecx, dword [eax + 0x4c]
push 0
push edx
mov edx, dword [eax + 0x48]
push ecx
mov ecx, dword [eax + 0x20]
push edx
mov edx, dword [eax + 0x1c]
push 0
push ecx
mov ecx, dword [eax + 0x18]
push edx
mov edx, dword [eax + 0x14]
push ecx
push edx
mov ecx, ebx
call fcn.00437fa0
jmp case.0x466986.16
mov esi, dword [eax + 0x1e]
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x1c]
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x466ea0
mov dword [esp + 0x10], ecx
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 0x20]
cmp ecx, edx
mov dword [esp + 0x14], ecx
jl 0x466eb2
mov dword [esp + 0x14], edx
mov edx, dword [esi + 0x1c]
mov dword [esp + 0x1c], eax
cmp eax, edx
jg 0x466ec1
mov dword [esp + 0x1c], edx
mov eax, dword [esi + 0x20]
mov dword [esp + 0x20], ecx
cmp ecx, eax
jg 0x466ed0
mov dword [esp + 0x20], eax
movsx ecx, byte [esi + 0x24]
mov eax, dword [esi + 0x2d]
mov edx, dword [esi + 0x29]
push eax
mov eax, dword [esi + 0x25]
push ecx
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x24]
push edx
push eax
mov eax, dword [esp + 0x70]
push ecx
push ebx
mov ecx, dword [esp + 0x7c]
sub esp, 0x10
mov edx, esp
mov dword [edx], eax
mov eax, dword [esp + 0x90]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x94]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
call fcn.004677e0
add esp, 0x34
test eax, eax
je case.0x466986.16
mov edx, dword [esi + 0x25]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
push edi
call fcn.00466740
add esp, 0x18
jmp case.0x466986.16
mov esi, dword [eax + 0x1e]
push 0xd
mov ecx, edi
call fcn.004ad8f3
push ebx
mov ecx, esi
call fcn.00448610
jmp case.0x466986.16
mov eax, dword [eax + 0x1e]
push 0
push ebx
mov ecx, eax
call fcn.004480a0
jmp case.0x466986.16
mov eax, dword [eax + 0x1e]
push ebx
mov ecx, eax
call fcn.00448120
jmp case.0x466986.16
test edi, edi
jne 0x466fa3
mov eax, dword [eax + 0x1e]
push edi
push eax
call fcn.0040d830
add esp, 8
jmp case.0x466986.16
mov edi, dword [edi + 4]
mov eax, dword [eax + 0x1e]
push edi
push eax
call fcn.0040d830
add esp, 8
jmp case.0x466986.16
xor ecx, ecx
mov byte [0x4d3238], 0xff
mov dword [0x4d77f8], ecx
mov dword [0x4d77fc], ecx
mov dword [0x4d7800], ecx
mov dword [0x4d7804], ecx
mov dword [0x4d7808], ecx
mov esi, dword [eax + 0x1e]
mov edx, dword [esi + 0x45]
mov eax, dword [esi + 0x41]
mov ecx, dword [esi + 0x49]
push edx
mov edx, dword [esi + 0x3d]
push eax
mov eax, dword [esi + 0x30]
push ecx
movsx ecx, byte [esi + 0x38]
push edx
mov edx, dword [esi + 0x20]
push eax
mov eax, dword [esi + 0x1c]
push ecx
mov ecx, dword [esi + 0x18]
push edx
mov edx, dword [esi + 0x14]
push eax
push ecx
push edx
lea eax, [esp + 0xc8]
push edi
push eax
call fcn.00465fa0
mov ecx, dword [eax]
mov dword [esp + 0x54], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x58], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x5c], ecx
mov edx, dword [eax + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x60], edx
lea edx, [esp + 0x54]
mov ecx, dword [eax + 0x1a]
mov eax, dword [ebp + 8]
and ecx, 0x800
push ecx
push edx
push esi
push edi
push eax
call fcn.0048d770
add esp, 0x44
jmp case.0x466986.16
mov eax, dword [eax + 0x1e]
cmp byte [eax + 0x4d], 1
jne 0x46707a
mov dword [esp + 0x44], vtable.CGdiObject.0
mov dword [esp + 0xb8], 7
jmp 0x467269
mov ecx, dword [ebp + 8]
push ebx
push ecx
mov ecx, eax
call fcn.00449480
jmp case.0x466986.16
mov eax, dword [eax + 0x1e]
mov ecx, dword [eax + 0x34]
test ecx, ecx
jne case.0x466986.16
push edi
mov ecx, eax
call fcn.00402580
jmp case.0x466986.16
lea ecx, [eax + 0x22]
call fcn.0043d720
mov edx, dword [ebp + 0x10]
mov edi, eax
xor esi, esi
mov eax, dword [edx + 0x26]
test eax, eax
jle case.0x466986.16
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
push eax
push edi
push ebx
push ecx
call fcn.004668a0
mov edx, dword [ebp + 0x10]
mov edi, dword [edi]
add esp, 0x10
inc esi
cmp esi, dword [edx + 0x26]
jl 0x4670c0
jmp case.0x466986.16
mov ecx, dword [eax + 0x1e]
cmp dword [ecx], 0
je 0x467125
mov ecx, dword [ecx + 4]
test ecx, ecx
je 0x467125
dec ecx
push esi
push ecx
lea ecx, [ebp + 0x10]
call fcn.0045dcd0
mov ecx, eax
add ecx, 0x22
call fcn.00467310
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call fcn.00417280
mov eax, dword [ebp + 8]
push ebx
push eax
call fcn.004668a0
add esp, 0x10
jmp case.0x466986.16
lea ecx, [eax + 0x22]
call fcn.0043d720
mov ecx, dword [ebp + 0x10]
mov edi, eax
xor esi, esi
mov eax, dword [ecx + 0x26]
test eax, eax
jle case.0x466986.16
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 8]
push edx
push edi
push ebx
push eax
call fcn.004668a0
mov ecx, dword [ebp + 0x10]
mov edi, dword [edi]
add esp, 0x10
inc esi
cmp esi, dword [ecx + 0x26]
jl 0x46713f
jmp case.0x466986.16
mov esi, dword [eax + 0x1e]
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x14]
mov ebx, dword [esi + 0x18]
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
mov eax, dword [esi + 0x12c]
test eax, eax
je 0x4671b2
lea ecx, [esp + 0x24]
call fcn.004afcaa
test edi, edi
je 0x46719a
mov edi, dword [edi + 4]
mov edx, dword [esi + 0x24]
lea eax, [esp + 0x24]
push edx
push eax
push edi
call dword [esi + 0x12c]
add esp, 0xc
jmp case.0x466986.16
push 0x808080
push 1
push 2
lea ecx, [esp + 0x58]
call fcn.004ae0b5
lea ecx, [esp + 0x4c]
mov byte [esp + 0xb8], 8
push ecx
mov ecx, edi
call fcn.004ad7e9
mov edx, dword [edi]
push 5
mov ecx, edi
mov esi, eax
call dword [edx + 0x24]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov ebx, eax
mov eax, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [edi + 4]
push edx
push eax
push ecx
call dword [sym.imp.GDI32.dll_Rectangle]
push esi
mov ecx, edi
call fcn.004ad7e9
push ebx
mov ecx, edi
call fcn.004ad7e9
mov dword [esp + 0x4c], vtable.CGdiObject.0
lea ecx, [esp + 0x4c]
mov byte [esp + 0xb8], 9
call fcn.004ae09f
jmp case.0x466986.16
mov esi, dword [eax + 0x1e]
push edi
mov ecx, esi
call fcn.00449ea0
mov eax, dword [esi + 0x43]
mov ebx, 1
cmp eax, ebx
jl case.0x466986.16
push ebx
push edi
mov ecx, esi
call fcn.0044a2d0
mov eax, dword [esi + 0x43]
inc ebx
cmp ebx, eax
jle 0x467245
mov dword [esp + 0x44], vtable.CGdiObject.0
mov dword [esp + 0xb8], 0xa
lea ecx, [esp + 0x44]
call fcn.004ae09f
mov ecx, dword [esp + 0xb0]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret