Function at 0x454d40
Capabilities:
Access peb ldr_data
Check os version
Get kernel32 base address
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ba956
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x4e3f80]
xor eax, esp
mov dword [esp + 0xc8], eax
push ebx
push esi
push edi
mov eax, dword [0x4e3f80]
xor eax, esp
push eax
lea eax, [esp + 0xe0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 4]
mov esi, dword [eax + 0xc]
mov edi, dword [ebp + 0xc]
mov ebx, ecx
mov ecx, dword [eax]
mov dword [esp + 0x30], ecx
mov ecx, dword [eax + 8]
xor eax, eax
cmp dword [ebp + 0x10], eax
mov dword [esp + 0x38], ecx
mov ecx, dword [ebx + 0x63c]
sete al
add edx, ecx
mov dword [esp + 0x34], edx
mov edx, dword [ebx]
add esi, ecx
mov ecx, ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x28], eax
mov eax, dword [edx + 0x10]
mov dword [esp + 0x3c], esi
call eax
cmp dword [ebx + 0x5d8], 0
mov dword [esp + 0x20], eax
jne 0x454e83
push 0x58
lea ecx, [esp + 0x7c]
push 0
push ecx
mov dword [esp + 0x80], 0
call fcn.004a1210
mov ecx, dword [ebx + 0x1e8]
add esp, 0xc
push edi
lea esi, [esp + 0x78]
call fcn.00447b80
cmp dword [ebx + 0x5e8], 0
mov eax, dword [ebx + 0x5d4]
mov edx, dword [ebx + 0x1c8]
mov cl, byte [ebx + 0x5e4]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov al, byte [ebx + 0x5e0]
mov byte [esp + 0x8e], 3
mov byte [esp + 0x8b], 1
mov dword [esp + 0x74], edx
mov byte [esp + 0x88], al
mov byte [esp + 0x89], cl
je 0x454e65
cmp dword [esp + 0x20], 1
jne 0x454e65
mov dword [esp + 0x84], 0x2bc
jmp 0x454e72
mov edx, dword [ebx + 0x1cc]
mov dword [esp + 0x84], edx
lea eax, [esp + 0x74]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov dword [ebx + 0x5d8], eax
mov ecx, dword [ebx + 0x5d8]
push ecx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [ebx + 0x1c0], 0
mov dword [esp + 0x2c], eax
je 0x454f81
mov eax, dword [ebx + 0x5dc]
lea esi, [ebx + 0x5dc]
sub eax, 0x10
push eax
call fcn.004020a0
add eax, 0x10
add esp, 4
mov dword [esp + 0x14], eax
xor edi, edi
push 0x4c3af6
mov ecx, esi
mov dword [esp + 0xec], edi
call fcn.00408630
mov edx, dword [ebx + 0x640]
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 0xc], edi
mov eax, dword [edx - 0xc]
mov dword [esp + 0x1c], eax
jle 0x454f3b
cmp edi, dword [esp + 0x1c]
jge 0x454f17
test edi, edi
jl 0x454fad
mov eax, dword [ebx + 0x640]
cmp edi, dword [eax - 0xc]
jg 0x454fad
movzx eax, word [eax + edi*2]
push eax
mov ecx, esi
call fcn.00411770
jmp 0x454f31
cmp dword [ebx + 0x650], 0
jne 0x454f27
push 0x4c4f94
jmp 0x454f2c
push 0x4cc78c
call fcn.00408160
mov edx, dword [esp + 0x14]
inc edi
cmp edi, dword [edx - 0xc]
jl 0x454eec
mov eax, dword [esp + 0x18]
push eax
push ebx
call fcn.00443810
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call fcn.00408830
mov dword [esp + 0xe8], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x454f7d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x18]
mov esi, dword [sym.imp.GDI32.dll_SetBkMode]
push 2
push edi
call esi
mov eax, dword [esp + 0x20]
cmp eax, 1
jne 0x454fb7
cmp dword [ebx + 0x5a0], 0
je 0x454fa2
push eax
push edi
call esi
mov ecx, dword [ebx + 0x1d4]
jmp 0x455038
push 0x80070057
call fcn.004010d0
cmp eax, 2
jne 0x454fd1
push 1
push edi
call esi
mov eax, dword [ebx + 0x1d0]
push eax
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
jmp 0x45504e
cmp eax, 3
jne 0x45501b
push 1
push edi
call esi
lea eax, [ebx + 0x2ec]
call fcn.0046cc10
mov esi, eax
xor eax, eax
test esi, esi
je 0x45500b
push 0x10
push eax
push esi
call fcn.0049eb95
add esp, 0xc
push esi
mov dword [esp + 0x20], eax
call fcn.0049081d
mov eax, dword [esp + 0x20]
add esp, 4
push eax
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov esi, dword [sym.imp.GDI32.dll_SetBkMode]
jmp 0x45504e
test eax, eax
je 0x455024
cmp eax, 5
jne 0x45504e
cmp dword [ebx + 0x5a0], 0
je 0x455032
push 1
push edi
call esi
mov ecx, dword [ebx + 0x1e4]
push ecx
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov edx, dword [ebx + 0x1dc]
push edx
push edi
call dword [sym.imp.GDI32.dll_SetBkColor]
cmp dword [esp + 0x28], 0
je 0x455063
push 1
push edi
call esi
push 0
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov eax, dword [ebx + 0xa8]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0xac]
sub eax, 0xffffff80
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x578]
lea ecx, [ebx + 0x578]
sub eax, 0x10
mov edx, 1
sub edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
or eax, edx
jge 0x45509f
push 0
call fcn.00402050
mov eax, dword [ebx + 0x5c4]
cmp dword [ebx + 0x18c], eax
jle 0x4550b8
test eax, eax
jle 0x4550b8
dec eax
mov dword [ebx + 0x18c], eax
mov eax, dword [ebx + 0x5bc]
test eax, eax
jne 0x4550e4
mov eax, dword [ebx + 0x578]
mov ecx, dword [eax - 8]
test eax, eax
jne 0x4552ab
jmp 0x4552bd
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x28], 0
mov ecx, dword [eax]
mov dword [esp + 0x1c], ecx
lea esi, [eax + 8]
mov ecx, 7
lea edi, [esp + 0x58]
rep movsd dword es:[edi], dword [esi]
jne 0x45513a
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x20]
add edx, ecx
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x48], edx
mov edx, dword [ebx + 0x638]
add ecx, eax
mov dword [esp + 0x44], eax
push edx
lea eax, [esp + 0x44]
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_FillRect]
call fcn.00498c2b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x4552a1
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
mov dword [esp + 0xe8], 1
mov ecx, dword [ebx + 0x658]
cmp dword [ecx - 0xc], 0
lea eax, [ebx + 0x658]
lea ecx, [esp + 0x24]
jne 0x455188
lea edx, [ebx + 0x648]
push edx
jmp 0x455189
push eax
call fcn.00408830
push str.CURRENTLANGUAGE
call fcn.0046ccd0
mov edi, eax
mov ecx, 0x4cc198
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4551c6
test dx, dx
je 0x4551c2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4551c6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4551a0
xor eax, eax
jmp 0x4551cb
sbb eax, eax
sbb eax, 0xffffffff
mov esi, dword [esp + 0x24]
test eax, eax
je 0x45520f
mov ecx, 0x4cc1a0
mov eax, edi
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x455206
test dx, dx
je 0x455202
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x455206
add eax, 4
add ecx, 4
test dx, dx
jne 0x4551e0
xor eax, eax
jmp 0x45520b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x455232
mov eax, dword [esi - 0xc]
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x50]
push ecx
push eax
push esi
push edx
call dword [sym.imp.GDI32.dll_GetTextExtentPointW]
mov eax, dword [ebx + 0xb0]
sub eax, dword [esp + 0x50]
add dword [esp + 0x14], eax
push edi
call fcn.0049081d
mov eax, dword [esi - 0xc]
mov edi, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
add esp, 4
push 0
push eax
mov eax, dword [esp + 0x20]
push esi
lea ecx, [esp + 0x3c]
push ecx
push 0
push edi
push edx
push eax
call dword [sym.imp.GDI32.dll_ExtTextOutW]
lea eax, [esi - 0x10]
mov dword [esp + 0xe8], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x455285
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add edi, dword [esp + 0x60]
cmp dword [esp + 0x1c], 0
mov dword [esp + 0x20], edi
jne 0x4550e0
mov edi, dword [esp + 0x18]
jmp 0x4550c2
push 0x80004005
call fcn.004010d0
push ecx
push eax
call fcn.0049df12
add esp, 8
test eax, eax
jl 0x454fad
mov ecx, dword [ebx + 0x578]
cmp eax, dword [ecx - 8]
jg 0x454fad
mov dword [ecx - 0xc], eax
mov ecx, dword [ebx + 0x578]
xor edx, edx
mov word [ecx + eax*2], dx
mov eax, dword [esp + 0x2c]
push eax
push edi
mov dword [ebx + 0x1c0], edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0xe0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.0049dc2a
mov esp, ebp
pop ebp
ret 0xc