Function at 0x41e9c0
Capabilities:
Check os version
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5248fe
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x5750c8]
xor eax, esp
mov dword [esp + 0xc8], eax
push ebx
push esi
push edi
mov eax, dword [0x5750c8]
xor eax, esp
push eax
lea eax, [esp + 0xe0]
mov dword fs:[0], eax
mov ebx, edx
xor eax, eax
lea edx, [esp + 0x3c]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x38], eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0xe8], eax
mov dword [esp + 0x60], eax
cmp ecx, eax
je 0x41ea4b
mov eax, ecx
lea esi, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x41ea30
sub eax, esi
mov ebx, eax
push ecx
lea eax, [esp + 0x40]
call fcn.00429600
mov ebx, dword [esp + 0x1c]
jmp 0x41ea75
push 0
mov esi, 1
lea edi, [esp + 0x40]
mov dword [esp + 0x64], 0
call fcn.004299a0
cmp dword [esp + 0x3c], 0x20
lea eax, [esp + 0x40]
jbe 0x41ea72
mov eax, dword [esp + 0x40]
mov byte [eax], 0
xor esi, esi
mov dword [esp + 0x70], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x6c], esi
mov word [esp + 0x69], si
mov byte [esp + 0x68], 0
mov byte [esp + 0x6b], 1
lea edi, [esp + 0x34]
mov dword [esp + 0xe8], 1
call fcn.0042ac70
test al, al
je 0x41f2c5
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x18], eax
inc eax
push eax
call fcn.0045f05c
mov edi, eax
mov eax, dword [esp + 0x1c]
mov byte [eax + edi], 0
mov ecx, dword [esp + 0x38]
mov edx, dword [ecx]
add esp, 4
push eax
mov eax, dword [edx + 0xc]
push edi
mov dword [esp + 0x38], edi
call eax
test al, al
je 0x41ec50
cmp byte [esp + 0x68], 0
je 0x41eb09
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
call eax
mov ecx, dword [esp + 0x34]
cmp ecx, esi
je 0x41eb09
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
xor ecx, ecx
mov byte [esp + 0x68], 0
mov dword [esp + 0x34], ecx
mov dword [esp + 0x6c], esi
mov dword [esp + 0xe8], 2
mov edi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
cmp byte [esp + 0x6b], cl
je 0x41eb41
mov eax, dword [esp + 0x64]
cmp eax, esi
je 0x41eb41
push eax
call edi
mov ecx, dword [esp + 0x38]
add esp, 4
cmp byte [esp + 0x68], 0
mov dword [esp + 0x64], esi
je 0x41eb63
mov edx, dword [ecx]
mov eax, dword [edx + 8]
call eax
mov ecx, dword [esp + 0x34]
cmp ecx, esi
je 0x41eb63
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov dword [esp + 0xe8], 0xffffffff
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x34], esi
mov word [esp + 0x69], 0
mov byte [esp + 0x68], 0
mov dword [esp + 0x6c], esi
cmp eax, esi
je 0x41eba2
cmp eax, 0x20
seta al
test al, al
je 0x41eb9e
mov ecx, dword [esp + 0x40]
push ecx
call edi
add esp, 4
mov dword [esp + 0x3c], esi
mov dword [esp + 0x20], esi
cmp dword [esp + 0x18], esi
jbe 0x41f062
xor esi, esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
lea ebx, [ebx]
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x30]
xor eax, eax
add edi, ecx
cmp byte [edi], 0x70
mov dword [esp + 0x14], 0xffff5542
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], eax
jne 0x41ec97
mov cl, byte [edi]
mov edx, edi
sub edx, str.page
nop
test cl, cl
je 0x41ec0e
cmp cl, 0x20
je 0x41ec0e
cmp eax, 4
jge 0x41ec17
mov cl, byte [edx + eax + 0x5536b9]
inc eax
cmp cl, byte [eax + str.page]
je 0x41ebf0
cmp eax, 4
jl 0x41ec97
mov eax, dword [ebx + 0x408]
test eax, eax
je 0x41f04c
mov edx, dword [esp + 0x18]
sub edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x2c]
push edx
lea ebx, [ebx + eax]
push edi
call fcn.0041e6d0
mov ebx, dword [esp + 0x24]
add esp, 8
add dword [esp + 0x2c], 8
mov dword [esp + 0x10], eax
jmp 0x41f04c
cmp edi, esi
je 0x41ec5e
push edi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
cmp byte [esp + 0x68], 0
je 0x41ec80
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
call eax
mov ecx, dword [esp + 0x34]
cmp ecx, esi
je 0x41ec80
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x68], 0
mov dword [esp + 0x34], esi
mov dword [esp + 0x6c], esi
push ecx
jmp 0x41f2f1
xor eax, eax
cmp byte [edi], 0x63
jne 0x41ed32
mov cl, byte [edi]
mov edx, edi
sub edx, str.chars
lea esp, [esp]
test cl, cl
je 0x41ecce
cmp cl, 0x20
je 0x41ecce
cmp eax, 5
jge 0x41ecd3
mov cl, byte [edx + eax + 0x5536e1]
inc eax
cmp cl, byte [eax + str.chars]
je 0x41ecb0
cmp eax, 5
jl 0x41ed32
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0xc0]
call fcn.0041e230
mov edi, dword [esp + 0x1c]
add esp, 8
mov dword [esp + 0x10], eax
cmp edi, 0xffff5542
je 0x41ee6e
cmp dword [ebx + 0x404], 0
jne 0x41ee6e
xor ecx, ecx
mov eax, edi
mov edx, 0x24
mul edx
seto cl
mov dword [ebx + 0x404], edi
neg ecx
or ecx, eax
push ecx
call fcn.0045f05c
mov dword [ebx], eax
jmp 0x41ee6b
mov edx, str.char
mov eax, edi
call fcn.0041e450
test al, al
je 0x41ee05
mov eax, dword [ebx]
test eax, eax
je 0x41f04c
mov ecx, dword [esp + 0x18]
sub ecx, dword [esp + 0x20]
push ecx
lea ecx, [esi + eax]
push edi
call fcn.0041e4a0
mov edx, dword [ebx]
fld dword [esi + edx + 4]
mov dword [esp + 0x18], eax
fidiv dword [ebx + 0x41c]
lea eax, [esi + edx + 4]
add esp, 8
fstp dword [eax]
mov eax, dword [ebx]
fld dword [esi + eax + 8]
fidiv dword [ebx + 0x420]
lea eax, [esi + eax + 8]
fstp dword [eax]
mov ecx, dword [ebx]
fld dword [esi + ecx + 0xc]
fdiv dword [ebx + 0x424]
lea eax, [esi + ecx + 0xc]
fstp dword [eax]
mov edx, dword [ebx]
fld dword [esi + edx + 0x10]
fdiv dword [ebx + 0x424]
lea eax, [esi + edx + 0x10]
fstp dword [eax]
mov eax, dword [ebx]
fld dword [esi + eax + 0x1c]
fdiv dword [ebx + 0x424]
lea eax, [esi + eax + 0x1c]
fstp dword [eax]
mov ecx, dword [ebx]
fld dword [esi + ecx + 0x14]
fdiv dword [ebx + 0x424]
lea eax, [esi + ecx + 0x14]
fstp dword [eax]
mov edx, dword [ebx]
fld dword [esi + edx + 0x18]
fdiv dword [ebx + 0x424]
lea eax, [esi + edx + 0x18]
mov edx, 0x100
fstp dword [eax]
mov eax, dword [ebx]
movzx ecx, word [eax + esi]
add eax, esi
cmp cx, dx
jae 0x41edfd
mov dword [ebx + ecx*4 + 4], eax
add esi, 0x24
jmp 0x41f04c
mov edx, str.kernings
mov eax, edi
call fcn.0041e450
test al, al
je 0x41ee8b
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0xc0]
call fcn.0041e230
mov edi, dword [esp + 0x1c]
add esp, 8
mov dword [esp + 0x10], eax
cmp edi, 0xffff5542
je 0x41ee6e
cmp dword [ebx + 0x414], 0
jne 0x41ee6e
xor ecx, ecx
mov eax, edi
mov edx, 0xc
mul edx
seto cl
mov dword [ebx + 0x414], edi
neg ecx
or ecx, eax
push ecx
call fcn.0045f05c
mov dword [ebx + 0x410], eax
add esp, 4
cmp dword [esp + 0x10], 0
jge 0x41f04c
mov eax, 2
sub eax, dword [esp + 0x10]
mov dword [esp + 0x10], eax
jmp 0x41f04c
mov edx, str.kerning
mov eax, edi
call fcn.0041e450
test al, al
je 0x41eed4
mov eax, dword [ebx + 0x410]
test eax, eax
je 0x41f04c
mov ecx, dword [esp + 0x18]
sub ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x28]
push ecx
lea ebx, [ebx + eax]
push edi
call fcn.0041e7a0
mov ebx, dword [esp + 0x24]
add esp, 8
add dword [esp + 0x28], 0xc
mov dword [esp + 0x10], eax
jmp 0x41f04c
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0xc0]
call fcn.0041e230
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x2c]
add esp, 8
test eax, eax
je 0x41ef08
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
jmp 0x41f039
mov edi, dword [esp + 0x14]
cmp edi, 0xffff5542
je 0x41f039
mov edx, str.pages
lea eax, [esp + 0xb8]
call fcn.0041e450
test al, al
je 0x41efbf
xor ecx, ecx
mov eax, edi
mov edx, 8
mul edx
seto cl
mov dword [ebx + 0x40c], edi
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.0045f05c
add esp, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0xe8], 3
test eax, eax
je 0x41efa7
push 0x41f340
push 0x41f330
push edi
mov dword [eax], edi
add eax, 4
push 8
push eax
mov dword [esp + 0x38], eax
call fcn.0045f2ca
mov eax, dword [esp + 0x24]
mov dword [esp + 0xe8], 0xffffffff
mov dword [ebx + 0x408], eax
jmp 0x41f039
xor eax, eax
mov dword [esp + 0xe8], 0xffffffff
mov dword [ebx + 0x408], eax
jmp 0x41f039
mov edx, str.scaleW
lea eax, [esp + 0xb8]
call fcn.0041e450
test al, al
je 0x41efdc
mov dword [ebx + 0x41c], edi
jmp 0x41f039
mov edx, str.scaleH
lea eax, [esp + 0xb8]
call fcn.0041e450
test al, al
je 0x41eff9
mov dword [ebx + 0x420], edi
jmp 0x41f039
mov edx, str.lineHeight
lea eax, [esp + 0xb8]
call fcn.0041e450
test al, al
je 0x41f01a
fild dword [esp + 0x14]
fstp dword [ebx + 0x424]
jmp 0x41f039
mov edx, str.base
lea eax, [esp + 0xb8]
call fcn.0041e450
test al, al
je 0x41f039
fild dword [esp + 0x14]
fstp dword [ebx + 0x428]
mov eax, dword [esp + 0x10]
test eax, eax
jns 0x41f04c
mov ecx, 2
sub ecx, eax
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x20]
add eax, dword [esp + 0x10]
mov dword [esp + 0x20], eax
cmp eax, dword [esp + 0x18]
jb 0x41ebc0
cmp dword [ebx + 0x40c], 0
fldz
fst dword [esp + 0xa0]
mov dword [esp + 0xac], 0xffffffff
fst dword [esp + 0xa4]
mov dword [esp + 0x1c], 0
fld1
fstp dword [esp + 0xa8]
fstp dword [esp + 0x9c]
jle 0x41f26a
test byte [0x5fcd40], 1
jne 0x41f11a
or dword [0x5fcd40], 1
mov dword [esp + 0xe8], 4
xor esi, esi
push 0x1c
mov dword [0x5bd2c8], esi
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
cmp eax, esi
je 0x41f292
mov dword [0x5bd2c4], eax
mov dword [eax], eax
mov eax, dword [0x5bd2c4]
mov dword [eax + 4], eax
mov eax, dword [0x5bd2c4]
mov dword [eax + 8], eax
mov edx, dword [0x5bd2c4]
mov byte [edx + 0x18], 1
mov eax, dword [0x5bd2c4]
push 0x52b680
mov byte [eax + 0x19], 1
call fcn.0045f177
add esp, 4
mov dword [esp + 0xe8], 0xffffffff
mov ecx, dword [ebx + 0x408]
mov esi, dword [esp + 0x1c]
mov ecx, dword [ecx + esi*8]
lea edx, [esp + 0x2c]
push edx
push 0x5bd2c0
call fcn.00427c50
lea ecx, [esp + 0x28]
push ecx
push eax
mov dword [esp + 0xf0], 5
call fcn.00420f10
mov byte [esp + 0xe8], 6
mov edi, dword [eax]
mov edx, dword [ebx + 0x408]
lea esi, [edx + esi*8 + 4]
test edi, edi
je 0x41f177
mov eax, dword [edi]
mov edx, dword [eax + 4]
mov ecx, edi
call edx
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
je 0x41f193
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 4]
call eax
mov ecx, eax
call fcn.004037e0
push 0
lea ecx, [esp + 0x2c]
mov byte [esp + 0xec], 5
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push ecx
call esi
test eax, eax
je 0x41f1be
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 4]
call eax
mov ecx, eax
call fcn.004037e0
push 0
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0xf0], 0xffffffff
call esi
test eax, eax
je 0x41f1e6
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 4]
call eax
mov ecx, eax
call fcn.004037e0
lea ecx, [esp + 0x94]
xor esi, esi
push ecx
lea edx, [esp + 0x7c]
push edx
mov dword [esp + 0x80], esi
mov dword [esp + 0x84], esi
mov dword [esp + 0x88], esi
call fcn.00420d40
lea edi, [ebx + 0x42c]
lea ecx, [esp + 0x78]
mov dword [esp + 0xe8], 7
call fcn.00420b90
mov dword [esp + 0xe8], 0xffffffff
mov eax, dword [esp + 0x78]
cmp eax, esi
je 0x41f246
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], esi
mov dword [esp + 0x1c], eax
cmp eax, dword [ebx + 0x40c]
jl 0x41f0a2
fld dword [ebx + 0x428]
mov eax, dword [esp + 0x30]
fdiv dword [ebx + 0x424]
fstp dword [ebx + 0x428]
test eax, eax
je 0x41f28e
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov al, 1
jmp 0x41f303
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x8c]
mov dword [esp + 0x1c], esi
call dword [sym.imp.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x560d4c
lea ecx, [esp + 0x8c]
push ecx
mov dword [esp + 0x90], vtable.std::bad_alloc.0
call sub.MSVCR100.dll__CxxThrowException
test byte [0x5bd2bc], 1
jne 0x41f2ec
or dword [0x5bd2bc], 1
push 0x52b6e0
mov dword [0x5bd2b4], 0x553af8
call fcn.0045f177
add esp, 4
lea edx, [esp + 0x34]
push edx
mov dword [esp + 0xec], 0xffffffff
call fcn.0042a990
xor al, al
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.0045f06e
mov esp, ebp
pop ebp
ret