Function at 0x462c40
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4eb0b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push esi
push edi
lea ecx, [esp + 0x1c]
call fcn.004ba030
xor ebx, ebx
lea ecx, [esp + 0x30]
mov dword [esp + 0x60], ebx
call fcn.004dc560
mov esi, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov eax, 1
mov byte [esp + 0x60], al
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
push esi
push edx
push ecx
push eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], esi
call fcn.00434490
mov esi, dword [ebp + 0x18]
add esp, 0x10
fmul qword [0x4f7fb8]
mov eax, dword [esi + 0x48]
xor edi, edi
cmp eax, ebx
fstp qword [esp + 0x14]
jle 0x462d9e
sub esp, 0x14
lea ecx, [esi + 0x40]
mov eax, esp
mov dword [esp + 0x24], esp
push edi
push eax
call fcn.00416560
lea ecx, [esp + 0x58]
push ecx
lea ecx, [esp + 0x34]
call fcn.004ba0a0
lea ecx, [esp + 0x44]
call fcn.004ba050
mov eax, dword [esp + 0x28]
cmp eax, 0xa
ja case.0x462d07.22
xor edx, edx
mov dl, byte [eax + 0x462de4]
jmp dword [edx*4 + 0x462dd8]
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x20]
neg eax
sbb eax, eax
and eax, ecx
lea ecx, [esp + 0x30]
push eax
call fcn.004dcae0
test eax, eax
je 0x462d96
jmp 0x462d70
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x20]
neg eax
sbb eax, eax
and eax, ecx
mov edx, dword [eax + 4]
mov eax, dword [eax]
push edx
push eax
call fcn.004344d0
fmul qword [0x4f7fb8]
fld qword [esp + 0x1c]
add esp, 8
lea ecx, [esp + 0x1c]
fsub st(1)
push ecx
sub esp, 8
fadd st(0), st(0)
fstp qword [esp]
fstp st(0)
call fcn.004af710
add esp, 0xc
test eax, eax
je 0x462d96
mov edx, dword [esi + 0x44]
mov eax, dword [esp + 0x20]
mov dword [edx + ebx + 4], eax
mov ecx, dword [esi + 0x44]
mov edx, dword [esp + 0x24]
mov dword [ecx + ebx + 8], edx
mov eax, dword [esi + 0x48]
inc edi
add ebx, 0x14
cmp edi, eax
jge 0x462d9e
jmp 0x462cc8
mov dword [esp + 0xc], 0
lea ecx, [esp + 0x30]
mov byte [esp + 0x60], 0
call fcn.004dc5b0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x60], 0xffffffff
call fcn.004ba050
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x14
inc esi
add byte [ebp + 0x2d860046], ch
inc esi
add byte [eax], al
add byte [edx], al
add byte [edx], al
add byte [eax], al
add byte [edx], al
add al, byte [ecx]
nop
lea eax, [esp + 0x694]
lea ecx, [esp + 0x84]
sub eax, ecx
lea edx, [esp + 0x84]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x294]
mov edi, dword [esp + 0x40]
sub eax, edx
mov dword [esp + 0x48], eax
lea eax, [esp + 0x494]
lea ecx, [esp + 0x84]
mov dword [esp + 0x4c], 0
sub eax, ecx
mov dword [esp + 0x44], eax
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x54]
push edx
push eax
push ecx
call dword [sym.imp.GDI32.dll_GetPixel]
mov edx, dword [esp + 0x14]
xor ebx, ebx
xor ecx, ecx
mov edx, dword [edx + 0x80]
test edx, edx
jle 0x482be9
mov edi, dword [esp + 0x14]
mov edi, dword [edi + 0x7c]
cmp dword [edi], eax
je 0x482be3
inc ecx
add edi, 4
cmp ecx, edx
jl 0x482bc9
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
mov edi, dword [esp + 0x40]
jmp 0x482bf1
mov edi, dword [esp + 0x40]
mov ebx, ecx
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
test bl, 8
je 0x482cc6
cmp ebp, 8
jne 0x482c16
lea eax, [edi + esi]
or byte [esp + eax + 0x84], 0x80
lea eax, [esp + eax + 0x84]
jmp 0x482cc6
cmp ebp, 7
jne 0x482c32
lea eax, [edi + esi]
or byte [esp + eax + 0x84], 0x40
lea eax, [esp + eax + 0x84]
jmp 0x482cc6
cmp ebp, 6
jne 0x482c4b
lea eax, [edi + esi]
or byte [esp + eax + 0x84], 0x20
lea eax, [esp + eax + 0x84]
jmp 0x482cc6
cmp ebp, 5
jne 0x482c64
lea eax, [edi + esi]
or byte [esp + eax + 0x84], 0x10
lea eax, [esp + eax + 0x84]
jmp 0x482cc6
cmp ebp, 4
jne 0x482c7d
lea eax, [edi + esi]
or byte [esp + eax + 0x84], 8
lea eax, [esp + eax + 0x84]
jmp 0x482cc6
cmp ebp, 3
jne 0x482c96
lea eax, [edi + esi]
or byte [esp + eax + 0x84], 4
lea eax, [esp + eax + 0x84]
jmp 0x482cc6
cmp ebp, 2
jne 0x482caf
lea eax, [edi + esi]
or byte [esp + eax + 0x84], 2
lea eax, [esp + eax + 0x84]
jmp 0x482cc6
cmp ebp, 1
jne 0x482cc6
lea eax, [edi + esi]
or byte [esp + eax + 0x84], 1
lea eax, [esp + eax + 0x84]
test bl, 4
je 0x482d54
cmp ebp, 8
jne 0x482cdf
mov al, byte [esp + esi + 0x84]
or al, 0x80
jmp 0x482d4d
cmp ebp, 7
jne 0x482cef
mov al, byte [esp + esi + 0x84]
or al, 0x40
jmp 0x482d4d
cmp ebp, 6
jne 0x482cff
mov al, byte [esp + esi + 0x84]
or al, 0x20
jmp 0x482d4d
cmp ebp, 5
jne 0x482d0f
mov al, byte [esp + esi + 0x84]
or al, 0x10
jmp 0x482d4d
cmp ebp, 4
jne 0x482d1f
mov al, byte [esp + esi + 0x84]
or al, 8
jmp 0x482d4d
cmp ebp, 3
jne 0x482d2f
mov al, byte [esp + esi + 0x84]
or al, 4
jmp 0x482d4d
cmp ebp, 2
jne 0x482d3f
mov al, byte [esp + esi + 0x84]
or al, 2
jmp 0x482d4d
cmp ebp, 1
jne 0x482d54
mov al, byte [esp + esi + 0x84]
or al, 1
mov byte [esp + esi + 0x84], al
test bl, 2
je 0x482e36
cmp ebp, 8
jne 0x482d7a
add ecx, esi
lea eax, [esp + ecx + 0x84]
mov cl, byte [esp + ecx + 0x84]
or cl, 0x80
jmp 0x482e34
cmp ebp, 7
jne 0x482d97
add ecx, esi
lea eax, [esp + ecx + 0x84]
mov cl, byte [esp + ecx + 0x84]
or cl, 0x40
jmp 0x482e34
cmp ebp, 6
jne 0x482db4
add ecx, esi
lea eax, [esp + ecx + 0x84]
mov cl, byte [esp + ecx + 0x84]
or cl, 0x20
jmp 0x482e34
cmp ebp, 5
jne 0x482dce
add ecx, esi
lea eax, [esp + ecx + 0x84]
mov cl, byte [esp + ecx + 0x84]
or cl, 0x10
jmp 0x482e34
cmp ebp, 4
jne 0x482de8
add ecx, esi
lea eax, [esp + ecx + 0x84]
test byte [eax], al
add byte [eax], al
test byte [eax], al
add byte [eax], al
mov cl, byte [esp + ecx + 0x84]
or cl, 8
jmp 0x482e34
cmp ebp, 3
jne 0x482e02
add ecx, esi
lea eax, [esp + ecx + 0x84]
mov cl, byte [esp + ecx + 0x84]
or cl, 4
jmp 0x482e34
cmp ebp, 2
jne 0x482e1c
add ecx, esi
lea eax, [esp + ecx + 0x84]
mov cl, byte [esp + ecx + 0x84]
or cl, 2
jmp 0x482e34
cmp ebp, 1
jne 0x482e36
add ecx, esi
lea eax, [esp + ecx + 0x84]
mov cl, byte [esp + ecx + 0x84]
or cl, 1
mov byte [eax], cl
test bl, 1
je 0x482f18
cmp ebp, 8
jne 0x482e5c
add edx, esi
mov cl, byte [esp + edx + 0x84]
lea eax, [esp + edx + 0x84]
or cl, 0x80
jmp 0x482f16
cmp ebp, 7
jne 0x482e79
add edx, esi
mov cl, byte [esp + edx + 0x84]
lea eax, [esp + edx + 0x84]
or cl, 0x40
jmp 0x482f16
cmp ebp, 6
jne 0x482e96
add edx, esi
mov cl, byte [esp + edx + 0x84]
lea eax, [esp + edx + 0x84]
or cl, 0x20
jmp 0x482f16
cmp ebp, 5
jne 0x482eb0
add edx, esi
mov cl, byte [esp + edx + 0x84]
lea eax, [esp + edx + 0x84]
or cl, 0x10
jmp 0x482f16
cmp ebp, 4
jne 0x482eca
add edx, esi
mov cl, byte [esp + edx + 0x84]
lea eax, [esp + edx + 0x84]
or cl, 8
jmp 0x482f16
cmp ebp, 3
jne 0x482ee4
add edx, esi
mov cl, byte [esp + edx + 0x84]
lea eax, [esp + edx + 0x84]
or cl, 4
jmp 0x482f16
cmp ebp, 2
jne 0x482efe
add edx, esi
mov cl, byte [esp + edx + 0x84]
lea eax, [esp + edx + 0x84]
or cl, 2
jmp 0x482f16
cmp ebp, 1
jne 0x482f18
add edx, esi
mov cl, byte [esp + edx + 0x84]
lea eax, [esp + edx + 0x84]
or cl, 1
mov byte [eax], cl
dec ebp
jne 0x482f21
inc esi
mov ebp, 8
mov eax, dword [esp + 0x4c]
inc eax
cmp eax, 0x40
mov dword [esp + 0x4c], eax
jl 0x482b9b
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 0x40
mov dword [esp + 0x10], eax
jl 0x482b53
mov eax, dword [esp + 0x60]
xor ebp, ebp
cmp eax, ebp
jne 0x482f53
xor eax, eax
jmp 0x482f56
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x54]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov esi, dword [esp + 0x8a4]
mov eax, dword [esi + 4]
cmp eax, ebp
je 0x482f7e
mov eax, dword [eax]
cmp eax, ebp
jne 0x482f78
mov ecx, dword [esi + 0x14]
mov dword [esi + 0xc], ebp
mov dword [esi + 0x10], ebp
mov dword [esi + 8], ebp
mov dword [esi + 4], ebp
call sub.MFC42.DLL_CPlex::FreeDataChain
mov dword [esi + 0x14], ebp
mov eax, dword [esi + 0x10]
mov bl, byte [esp + ebp + 0x494]
mov edi, dword [esi + 8]
test eax, eax
jne 0x482fd3
mov edx, dword [esi + 0x18]
push 0xc
lea eax, [esi + 0x14]
push edx
push eax
call sub.MFC42.DLL_CPlex::Create
mov ecx, dword [esi + 0x18]
lea edx, [ecx + ecx*2]
dec ecx
test ecx, ecx
lea eax, [eax + edx*4 - 8]
jl 0x482fd3
inc ecx
mov edx, dword [esi + 0x10]
mov dword [eax], edx
mov dword [esi + 0x10], eax
sub eax, 0xc
dec ecx
jne 0x482fc5
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
mov dword [esi + 0x10], ecx
mov dword [eax + 4], edi
mov dword [eax], 0
mov edi, dword [esi + 0xc]
inc edi
mov dword [esi + 0xc], edi
mov byte [eax + 8], 0
mov byte [eax + 8], bl
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x482ffd
mov dword [ecx], eax
jmp 0x483000
mov dword [esi + 4], eax
inc ebp
mov dword [esi + 8], eax
cmp ebp, 0x200
jl 0x482f95
xor ebp, ebp
mov eax, dword [esi + 0x10]
mov bl, byte [esp + ebp + 0x294]
mov edi, dword [esi + 8]
test eax, eax
jne 0x48304c
mov edx, dword [esi + 0x18]
push 0xc
lea eax, [esi + 0x14]
push edx
push eax
call sub.MFC42.DLL_CPlex::Create
mov ecx, dword [esi + 0x18]
lea edx, [ecx + ecx*2]
dec ecx
test ecx, ecx
lea eax, [eax + edx*4 - 8]
jl 0x48304c
inc ecx
mov edx, dword [esi + 0x10]
mov dword [eax], edx
mov dword [esi + 0x10], eax
sub eax, 0xc
dec ecx
jne 0x48303e
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
mov dword [esi + 0x10], ecx
mov dword [eax + 4], edi
mov dword [eax], 0
mov edi, dword [esi + 0xc]
inc edi
mov dword [esi + 0xc], edi
mov byte [eax + 8], 0
mov byte [eax + 8], bl
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x483076
mov dword [ecx], eax
jmp 0x483079
mov dword [esi + 4], eax
inc ebp
mov dword [esi + 8], eax
cmp ebp, 0x200
jl 0x48300e
xor ebp, ebp
mov eax, dword [esi + 0x10]
mov bl, byte [esp + ebp + 0x84]
mov edi, dword [esi + 8]
test eax, eax
jne 0x4830c5
mov edx, dword [esi + 0x18]
push 0xc
lea eax, [esi + 0x14]
push edx
push eax
call sub.MFC42.DLL_CPlex::Create
mov ecx, dword [esi + 0x18]
lea edx, [ecx + ecx*2]
dec ecx
test ecx, ecx
lea eax, [eax + edx*4 - 8]
jl 0x4830c5
inc ecx
mov edx, dword [esi + 0x10]
mov dword [eax], edx
mov dword [esi + 0x10], eax
sub eax, 0xc
dec ecx
jne 0x4830b7
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
mov dword [esi + 0x10], ecx
mov dword [eax + 4], edi
mov dword [eax], 0
mov edi, dword [esi + 0xc]
inc edi
mov dword [esi + 0xc], edi
mov byte [eax + 8], 0
mov byte [eax + 8], bl
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4830ef
mov dword [ecx], eax
jmp 0x4830f2
mov dword [esi + 4], eax
inc ebp
mov dword [esi + 8], eax
cmp ebp, 0x200
jl 0x483087
xor ebp, ebp
mov eax, dword [esi + 0x10]
mov bl, byte [esp + ebp + 0x694]
mov edi, dword [esi + 8]
test eax, eax
jne 0x48313e
mov edx, dword [esi + 0x18]
push 0xc
lea eax, [esi + 0x14]
push edx
push eax
call sub.MFC42.DLL_CPlex::Create
mov ecx, dword [esi + 0x18]
lea edx, [ecx + ecx*2]
dec ecx
test ecx, ecx
lea eax, [eax + edx*4 - 8]
jl 0x48313e
inc ecx
mov edx, dword [esi + 0x10]
mov dword [eax], edx
mov dword [esi + 0x10], eax
sub eax, 0xc
dec ecx
jne 0x483130
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
mov dword [esi + 0x10], ecx
mov dword [eax + 4], edi
mov dword [eax], 0
mov edi, dword [esi + 0xc]
inc edi
mov dword [esi + 0xc], edi
mov byte [eax + 8], 0
mov byte [eax + 8], bl
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x483168
mov dword [ecx], eax
jmp 0x48316b
mov dword [esi + 4], eax
inc ebp
mov dword [esi + 8], eax
cmp ebp, 0x200
jl 0x483100
mov edi, 0x4f4f14
mov dword [esp + 0x38], edi
lea ecx, [esp + 0x38]
mov byte [esp + 0x89c], 5
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov esi, 0x4f4f00
mov dword [esp + 0x30], edi
mov dword [esp + 0x38], esi
lea ecx, [esp + 0x30]
mov byte [esp + 0x89c], 6
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0x30], esi
mov dword [esp + 0x28], edi
lea ecx, [esp + 0x28]
mov byte [esp + 0x89c], 7
call sub.MFC42.DLL_CGdiObject::DeleteObject
lea ecx, [esp + 0x74]
mov dword [esp + 0x28], esi
mov byte [esp + 0x89c], 0
call fcn.004e2520
lea ecx, [esp + 0x50]
mov dword [esp + 0x89c], 0xffffffff
call fcn.004e2520
mov ecx, dword [esp + 0x894]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x890
ret 4