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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5d9640
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x680f10]
xor eax, esp
mov dword [esp + 0xb0], eax
push ebx
push esi
push edi
mov eax, dword [0x680f10]
xor eax, esp
push eax
lea eax, [esp + 0xc8]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor edi, edi
cmp esi, edi
mov dword [esp + 0x30], ecx
je 0x4e9d8c
mov eax, dword [esi]
mov edx, dword [eax]
mov ecx, esi
call edx
cmp eax, 6
jne 0x4e9d8c
push str.UseCMap
lea ecx, [esp + 0x88]
call fcn.0048cd50
lea eax, [esp + 0x84]
push eax
push 1
mov ecx, esi
mov dword [esp + 0xd8], edi
call fcn.004b53e0
mov ecx, eax
call fcn.004b7950
cmp dword [esp + 0xa0], 0x10
mov ebx, eax
mov dword [esp + 0xd0], 0xffffffff
mov dword [esp + 0x84], 0x5f1558
jb 0x4e93f4
mov ecx, dword [esp + 0x8c]
push ecx
call fcn.004274fc
add esp, 4
cmp ebx, edi
mov dword [esp + 0xa0], 0xf
mov dword [esp + 0x9c], edi
mov byte [esp + 0x8c], 0
mov dword [esp + 0x84], 0x5f13d0
je 0x4e943e
mov edx, dword [ebx]
mov eax, dword [edx]
mov ecx, ebx
call eax
cmp eax, 6
jne 0x4e9436
mov ecx, dword [esp + 0x30]
push ebx
call fcn.004e9330
jmp 0x4e943e
mov edx, dword [ebx]
mov eax, dword [edx]
mov ecx, ebx
call eax
mov ecx, esi
call fcn.004b5260
mov edx, dword [esi + 0xc]
lea ebx, [esi + 0xc]
mov edi, eax
mov eax, dword [edx + 0x14]
mov ecx, ebx
mov dword [esp + 0x2c], ebx
call eax
test edi, edi
je 0x4e9d8c
xor edi, edi
cmp eax, edi
je 0x4e9d8c
mov edx, dword [esi + 0x10]
push edi
push edi
xor ecx, ecx
xor eax, eax
add esi, 0x10
push ecx
push eax
mov eax, dword [edx + 0x14]
push esi
call eax
mov edi, edi
push 0xffffffffffffffff
push str.beginbfrange
push ebx
call fcn.004a04f0
add esp, 0xc
test al, al
je 0x4e9a13
push 1
mov ecx, ebx
call fcn.004ca870
test al, al
je 0x4e9480
mov ecx, dword [esi]
mov eax, dword [ecx + 0xc]
push edi
push 1
lea edx, [esp + 0x1a]
push edx
push esi
mov byte [esp + 0x22], 0
call eax
cmp byte [esp + 0x12], 0x3c
jne 0x4e9480
push 0x5fb31b
lea ecx, [esp + 0x68]
call fcn.0048cd50
mov dword [esp + 0x64], 0x5f1580
mov edx, dword [esi]
push edi
or eax, 0xffffffff
push 1
or ecx, eax
push ecx
push eax
mov eax, dword [edx + 0x14]
push esi
mov dword [esp + 0xe4], 1
call eax
lea ecx, [esp + 0x64]
push ebx
push ecx
call fcn.004a1750
add esp, 8
push 1
mov ecx, ebx
call fcn.004ca870
test al, al
je 0x4e9988
mov edx, dword [esi]
mov ecx, dword [edx + 0xc]
push edi
push 1
lea eax, [esp + 0x1a]
push eax
push esi
call ecx
cmp byte [esp + 0x12], 0x3c
jne 0x4e99bb
push 0x5fb329
lea ecx, [esp + 0x88]
call fcn.0048cd50
mov dword [esp + 0x84], 0x5f1580
mov edx, dword [esi]
push edi
or eax, 0xffffffff
push 1
or ecx, eax
push ecx
push eax
mov eax, dword [edx + 0x14]
push esi
mov byte [esp + 0xe4], 2
call eax
lea ecx, [esp + 0x84]
push ebx
push ecx
call fcn.004a1750
add esp, 8
push 1
mov ecx, ebx
call fcn.004ca870
test al, al
je 0x4e99ee
mov edx, dword [esi]
mov ecx, dword [edx + 0xc]
push edi
push 1
lea eax, [esp + 0x1a]
push eax
push esi
call ecx
mov al, byte [esp + 0x12]
cmp al, 0x3c
jne 0x4e9741
push 0x5fb32a
lea ecx, [esp + 0x48]
call fcn.0048cd50
mov dword [esp + 0x44], 0x5f1580
mov edx, dword [esi]
push edi
or eax, 0xffffffff
push 1
or ecx, eax
push ecx
push eax
mov eax, dword [edx + 0x14]
push esi
mov byte [esp + 0xe4], 3
call eax
lea ecx, [esp + 0x44]
push ebx
push ecx
call fcn.004a1750
add esp, 8
cmp dword [esp + 0xa0], 0x10
mov eax, dword [esp + 0x8c]
jae 0x4e95f8
lea eax, [esp + 0x8c]
mov edx, dword [esp + 0x9c]
push edx
push eax
mov eax, dword [esp + 0x84]
push eax
push edi
lea ecx, [esp + 0x78]
call fcn.0048a450
test eax, eax
jg 0x4e9724
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
cmp dword [esp + 0x80], 0x10
mov byte [esp + 0xd0], 4
jb 0x4e9643
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x28], ecx
jmp 0x4e964b
lea edx, [esp + 0x6c]
mov dword [esp + 0x28], edx
lea ecx, [esp + 0x64]
xor edi, edi
call fcn.004cb240
test eax, eax
jbe 0x4e9681
lea ebx, [ebx]
mov eax, dword [esp + 0x28]
lea ecx, [edi + eax]
push ecx
lea ecx, [esp + 0x18]
call fcn.004d0a50
lea ecx, [esp + 0x64]
add edi, 1
call fcn.004cb240
cmp edi, eax
jb 0x4e9660
mov edi, dword [esp + 0x30]
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0xa8]
push eax
mov ecx, edi
call fcn.004e03a0
lea ecx, [esp + 0x14]
push ecx
mov ecx, edi
mov byte [esp + 0xd4], 5
call fcn.004ef050
push 0xffffffffffffffff
xor edi, edi
push edi
lea edx, [esp + 0xac]
push edx
mov ecx, eax
call fcn.00414000
lea eax, [esp + 0x44]
push eax
call fcn.004dd340
lea ecx, [esp + 0x68]
push ecx
call fcn.004dd340
add esp, 8
cmp dword [esp + 0xbc], 8
jb 0x4e96f2
mov edx, dword [esp + 0xa8]
push edx
call fcn.004274fc
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esp + 0xbc], 7
mov dword [esp + 0xb8], edi
mov word [esp + 0xa8], di
mov byte [esp + 0xd0], 3
call fcn.004dd8a0
xor edi, edi
jmp 0x4e95e0
cmp dword [esp + 0x60], 0x10
mov dword [esp + 0x44], 0x5f1558
jb 0x4e98fe
mov eax, dword [esp + 0x4c]
push eax
jmp 0x4e98f6
cmp al, 0x5b
jne 0x4e99ee
push 0x5fb32b
lea ecx, [esp + 0x48]
call fcn.004a2c50
mov byte [esp + 0xd0], 6
nop
cmp dword [esp + 0xa0], 0x10
mov eax, dword [esp + 0x8c]
jae 0x4e9778
lea eax, [esp + 0x8c]
mov ecx, dword [esp + 0x9c]
mov edx, dword [esp + 0x7c]
push ecx
push eax
push edx
push edi
lea ecx, [esp + 0x78]
call fcn.0048a450
test eax, eax
jg 0x4e98e2
push 1
mov ecx, ebx
call fcn.004ca870
test al, al
je 0x4e98e2
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
push edi
push 1
lea ecx, [esp + 0x1a]
push ecx
push esi
call edx
mov al, byte [esp + 0x12]
cmp al, 0x5d
jne 0x4e97e2
mov edx, dword [esi]
push edi
or eax, 0xffffffff
push 1
or ecx, eax
push ecx
push eax
mov eax, dword [edx + 0x14]
push esi
call eax
lea ecx, [esp + 0x44]
push ecx
call fcn.004dd340
add esp, 4
jmp 0x4e980a
cmp al, 0x3c
jne 0x4e98e2
mov edx, dword [esi]
push edi
or eax, 0xffffffff
push 1
or ecx, eax
push ecx
push eax
mov eax, dword [edx + 0x14]
push esi
call eax
lea ecx, [esp + 0x44]
push ebx
push ecx
call fcn.004a1750
add esp, 8
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
cmp dword [esp + 0x80], 0x10
mov ebx, dword [esp + 0x6c]
mov byte [esp + 0xd0], 7
jae 0x4e9830
lea ebx, [esp + 0x6c]
lea ecx, [esp + 0x64]
xor edi, edi
call fcn.004cb240
test eax, eax
jbe 0x4e985d
nop
lea edx, [edi + ebx]
push edx
lea ecx, [esp + 0x38]
call fcn.004d0a50
lea ecx, [esp + 0x64]
add edi, 1
call fcn.004cb240
cmp edi, eax
jb 0x4e9840
mov ebx, dword [esp + 0x30]
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0xa8]
push ecx
mov ecx, ebx
call fcn.004e03a0
mov edi, eax
lea edx, [esp + 0x34]
push edx
mov ecx, ebx
mov byte [esp + 0xd4], 8
call fcn.004ef050
push 0xffffffffffffffff
push 0
push edi
mov ecx, eax
call fcn.00414000
cmp dword [esp + 0xbc], 8
mov byte [esp + 0xd0], 7
jb 0x4e98b9
mov eax, dword [esp + 0xa8]
push eax
call fcn.004274fc
add esp, 4
lea ecx, [esp + 0x64]
push ecx
call fcn.004dd340
add esp, 4
lea ecx, [esp + 0x34]
mov byte [esp + 0xd0], 6
call fcn.004dd8a0
mov ebx, dword [esp + 0x2c]
xor edi, edi
jmp 0x4e9760
cmp dword [esp + 0x60], 0x10
mov dword [esp + 0x44], 0x5f1558
jb 0x4e98fe
mov edx, dword [esp + 0x4c]
push edx
call fcn.004274fc
add esp, 4
cmp dword [esp + 0xa0], 0x10
mov dword [esp + 0x84], 0x5f1558
jb 0x4e9923
mov eax, dword [esp + 0x8c]
push eax
call fcn.004274fc
add esp, 4
cmp dword [esp + 0x80], 0x10
mov dword [esp + 0xa0], 0xf
mov dword [esp + 0x9c], edi
mov byte [esp + 0x8c], 0
mov dword [esp + 0x84], 0x5f13d0
mov dword [esp + 0xd0], 0xffffffff
mov dword [esp + 0x64], 0x5f1558
jb 0x4e9972
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.004274fc
add esp, 4
push 1
mov ecx, ebx
call fcn.004ca870
test al, al
jne 0x4e94a5
jmp 0x4e9480
cmp dword [esp + 0x80], 0x10
mov dword [esp + 0xd0], 0xffffffff
mov dword [esp + 0x64], 0x5f1558
jb 0x4e9480
mov edx, dword [esp + 0x6c]
push edx
call fcn.004274fc
add esp, 4
jmp 0x4e9480
cmp dword [esp + 0x80], 0x10
mov dword [esp + 0xd0], 0xffffffff
mov dword [esp + 0x64], 0x5f1558
jb 0x4e9480
mov eax, dword [esp + 0x6c]
push eax
call fcn.004274fc
add esp, 4
jmp 0x4e9480
lea ecx, [esp + 0x84]
call fcn.004b36e0
lea ecx, [esp + 0x64]
mov dword [esp + 0xd0], 0xffffffff
call fcn.004b36e0
jmp 0x4e9480
mov edx, dword [esi]
push edi
push edi
xor ecx, ecx
xor eax, eax
push ecx
push eax
mov eax, dword [edx + 0x14]
push esi
call eax
mov edi, dword [esp + 0x2c]
push 0xffffffffffffffff
push str.beginbfchar
push edi
call fcn.004a04f0
add esp, 0xc
test al, al
je 0x4e9d8c
push 1
mov ecx, edi
call fcn.004ca870
test al, al
je 0x4e9a23
lea esp, [esp]
mov ecx, dword [esi]
mov eax, dword [ecx + 0xc]
xor edi, edi
push edi
push 1
lea edx, [esp + 0x1b]
push edx
push esi
mov byte [esp + 0x23], 0
call eax
cmp byte [esp + 0x13], 0x3c
jne 0x4e9a23
push 0x5fb333
lea ecx, [esp + 0x48]
call fcn.0048cd50
mov dword [esp + 0x44], 0x5f1580
mov edx, dword [esi]
push edi
or eax, 0xffffffff
push 1
or ecx, eax
push ecx
push eax
mov eax, dword [edx + 0x14]
push esi
mov dword [esp + 0xe4], 9
call eax
mov ecx, dword [esp + 0x2c]
push ecx
lea edx, [esp + 0x48]
push edx
call fcn.004a1750
add esp, 8
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
cmp dword [esp + 0x60], 0x10
mov byte [esp + 0xd0], 0xa
jb 0x4e9ad8
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x28], eax
jmp 0x4e9ae0
lea ecx, [esp + 0x4c]
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x44]
xor ebx, ebx
call fcn.004cb240
test eax, eax
jbe 0x4e9b5b
nop
mov edi, dword [esp + 0x18]
test edi, edi
mov eax, dword [esp + 0x1c]
je 0x4e9b1e
mov edx, dword [esp + 0x20]
mov ecx, eax
sub ecx, edi
sub edx, edi
cmp ecx, edx
jae 0x4e9b1e
mov edx, dword [esp + 0x28]
mov cl, byte [ebx + edx]
mov edi, eax
add edi, 1
mov byte [eax], cl
mov dword [esp + 0x1c], edi
jmp 0x4e9b4b
cmp edi, eax
mov dword [esp + 0x24], eax
jbe 0x4e9b2b
call fcn.0044b7ad
mov edx, dword [esp + 0x28]
lea ecx, [ebx + edx]
mov edx, dword [esp + 0x24]
push ecx
push edx
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x24]
call fcn.004d09c0
lea ecx, [esp + 0x44]
add ebx, 1
call fcn.004cb240
cmp ebx, eax
jb 0x4e9af0
mov ecx, dword [esp + 0x2c]
push 1
call fcn.004ca870
test al, al
je 0x4e9cd1
mov ecx, dword [esi]
mov eax, dword [ecx + 0xc]
push 0
push 1
lea edx, [esp + 0x1b]
push edx
push esi
call eax
cmp byte [esp + 0x13], 0x3c
jne 0x4e9cd1
mov edx, dword [esi]
push 0
or eax, 0xffffffff
push 1
or ecx, eax
push ecx
push eax
mov eax, dword [edx + 0x14]
push esi
call eax
mov ecx, dword [esp + 0x2c]
push ecx
lea edx, [esp + 0x48]
push edx
call fcn.004a1750
mov ebx, dword [esp + 0x38]
add esp, 8
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0xa8]
push ecx
mov ecx, ebx
call fcn.004e03a0
mov edi, eax
lea edx, [esp + 0x14]
push edx
mov ecx, ebx
mov byte [esp + 0xd4], 0xb
call fcn.004ef050
push 0xffffffffffffffff
push 0
push edi
mov ecx, eax
call fcn.00414000
cmp dword [esp + 0xbc], 8
jb 0x4e9c03
mov eax, dword [esp + 0xa8]
push eax
call fcn.004274fc
add esp, 4
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
cmp ecx, eax
mov ebx, eax
jbe 0x4e9c1e
call fcn.0044b7ad
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
cmp ecx, eax
mov edi, ecx
jbe 0x4e9c31
call fcn.0044b7ad
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
cmp edi, ebx
je 0x4e9c5a
sub eax, ebx
test eax, eax
lea edx, [eax + edi]
mov dword [esp + 0x24], edx
jle 0x4e9c52
push eax
push ebx
push eax
push edi
call fcn.0044ac88
mov ecx, dword [esp + 0x28]
add esp, 0x10
mov eax, dword [esp + 0x24]
mov dword [esp + 0x1c], eax
test ecx, ecx
je 0x4e9c67
push ecx
call fcn.004274fc
add esp, 4
xor eax, eax
cmp dword [esp + 0x60], 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0xd0], 0xffffffff
mov dword [esp + 0x44], 0x5f1558
jb 0x4e9c9c
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.004274fc
add esp, 4
mov ecx, dword [esp + 0x2c]
push 1
mov dword [esp + 0x64], 0xf
mov dword [esp + 0x60], 0
mov byte [esp + 0x50], 0
mov dword [esp + 0x48], 0x5f13d0
call fcn.004ca870
test al, al
jne 0x4e9a50
jmp 0x4e9a23
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
cmp ecx, eax
mov ebx, eax
jbe 0x4e9cee
call fcn.0044b7ad
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
cmp ecx, eax
mov edi, ecx
jbe 0x4e9cff
call fcn.0044b7ad
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
cmp edi, ebx
je 0x4e9d28
sub eax, ebx
test eax, eax
lea edx, [eax + edi]
mov dword [esp + 0x24], edx
jle 0x4e9d20
push eax
push ebx
push eax
push edi
call fcn.0044ac88
mov ecx, dword [esp + 0x28]
add esp, 0x10
mov eax, dword [esp + 0x24]
mov dword [esp + 0x1c], eax
test ecx, ecx
je 0x4e9d35
push ecx
call fcn.004274fc
add esp, 4
xor eax, eax
cmp dword [esp + 0x60], 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0xd0], 0xffffffff
mov dword [esp + 0x44], 0x5f1558
jb 0x4e9d6a
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.004274fc
add esp, 4
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x5c], 0
mov byte [esp + 0x4c], 0
mov dword [esp + 0x44], 0x5f13d0
jmp 0x4e9a23
mov ecx, dword [esp + 0xc8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.0044abb9
mov esp, ebp
pop ebp
ret 4