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

Disassembly:
push 0xffffffffffffffff
push 0x441c6d
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
mov eax, dword [0x44f1a0]
xor eax, esp
mov dword [esp + 0xb0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44f1a0]
xor eax, esp
push eax
lea eax, [esp + 0xc8]
mov dword fs:[0], eax
mov ebx, dword [esp + 0xe0]
mov eax, dword [esp + 0xd8]
mov ebp, dword [esp + 0xdc]
mov edi, ecx
mov esi, edx
xor ecx, ecx
cmp dword [esi + 0x14], 0x24
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
jae 0x412236
mov dword [eax + 0x18], 0xf
mov dword [eax + 0x14], ecx
mov byte [eax + 4], cl
jmp 0x4127f4
mov eax, ebx
call fcn.0040e810
cmp dword [esi + 0x18], 0x10
jb 0x412248
mov esi, dword [esi + 4]
jmp 0x41224b
add esi, 4
mov ecx, 0x10
cmp dword [edi + 0x18], ecx
jb 0x41225a
mov edi, dword [edi + 4]
jmp 0x41225d
add edi, 4
cmp dword [ebp + 0x18], ecx
jb 0x412267
mov ecx, dword [ebp + 4]
jmp 0x41226a
lea ecx, [ebp + 4]
mov edx, dword [esp + 0xe4]
push edx
push esi
push edi
push ecx
lea ecx, [esp + 0x24]
push ecx
call eax
add esp, 0x14
xor edi, edi
push 0xffffffffffffffff
mov dword [esp + 0xd4], edi
push edi
mov esi, 0xf
push eax
lea ecx, [esp + 0x60]
mov dword [esp + 0x78], esi
mov dword [esp + 0x74], edi
mov byte [esp + 0x64], 0
call fcn.0040336e
mov ebp, 0x10
mov byte [esp + 0xd0], 2
cmp dword [esp + 0x2c], ebp
jb 0x4122c7
mov edx, dword [esp + 0x18]
push edx
call fcn.0042bbfa
add esp, 4
cmp dword [esp + 0x6c], ebp
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], edi
mov byte [esp + 0x18], 0
jae 0x4122e2
lea ecx, [esp + 0x58]
mov eax, dword [esp + 0x68]
push eax
lea edx, [esp + 0xac]
push edx
lea eax, [esp + 0x40]
call fcn.0042b092
lea esi, [esp + 0xb0]
mov byte [esp + 0xd8], 3
call fcn.00404e9a
push edi
mov eax, esi
lea ecx, [esp + 0x20]
call fcn.00406bb1
add esp, 0xc
push 0xffffffffffffffff
push edi
push eax
lea ecx, [esp + 0x60]
mov byte [esp + 0xdc], 4
call fcn.0040336e
cmp dword [esp + 0x2c], ebp
jb 0x412343
mov eax, dword [esp + 0x18]
push eax
call fcn.0042bbfa
add esp, 4
mov ebp, ebx
and ebp, 0x80000001
jns 0x412352
dec ebp
or ebp, 0xfffffffe
inc ebp
cmp ebx, 0xa
jge 0x412495
xor edi, edi
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], edi
mov byte [esp + 0x3c], 0
mov byte [esp + 0xd0], 5
cmp dword [esp + 0x68], edi
jbe 0x412427
mov ecx, edi
and ecx, 1
cmp ecx, ebp
jne 0x41241a
cmp edi, dword [esp + 0x68]
jbe 0x412398
call fcn.0042c040
cmp dword [esp + 0x6c], 0x10
mov eax, dword [esp + 0x58]
jae 0x4123a7
lea eax, [esp + 0x58]
mov bl, byte [eax + edi]
or edx, 0xffffffff
sub edx, dword [esp + 0x4c]
cmp edx, 1
ja 0x4123bb
call fcn.0042b8bc
mov esi, dword [esp + 0x4c]
add esi, 1
cmp esi, 0xfffffffe
jbe 0x4123cc
call fcn.0042b8bc
mov eax, dword [esp + 0x50]
cmp eax, esi
jae 0x41281e
mov eax, dword [esp + 0x4c]
push eax
push esi
lea ecx, [esp + 0x40]
call fcn.004037c9
mov eax, dword [esp + 0x50]
test esi, esi
jbe 0x41241a
cmp eax, 0x10
mov eax, dword [esp + 0x3c]
jae 0x4123fc
lea eax, [esp + 0x3c]
mov ecx, dword [esp + 0x4c]
mov byte [ecx + eax], bl
cmp dword [esp + 0x50], 0x10
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x4c], esi
jae 0x412416
lea eax, [esp + 0x3c]
mov byte [eax + esi], 0
add edi, 1
cmp edi, dword [esp + 0x68]
jb 0x412380
mov edi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x60]
mov esi, dword [esp + 0x64]
mov dword [esp + 0x58], edi
mov edi, dword [esp + 0x40]
mov dword [esp + 0x5c], edi
mov edi, dword [esp + 0x44]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x6c]
cmp eax, 0x10
mov dword [esp + 0x60], edi
mov edi, dword [esp + 0x48]
mov dword [esp + 0x68], edx
mov edx, dword [esp + 0x50]
mov dword [esp + 0x64], edi
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x48], esi
mov dword [esp + 0x6c], edx
mov dword [esp + 0x50], eax
jb 0x412495
push ecx
call fcn.0042bbfa
add esp, 4
mov eax, dword [esp + 0xe4]
mov ebp, eax
and ebp, 0x80000001
jns 0x4124ab
dec ebp
or ebp, 0xfffffffe
inc ebp
cmp eax, 0xa
jge 0x4125f5
xor edi, edi
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], edi
mov byte [esp + 0x3c], 0
mov byte [esp + 0xd0], 7
cmp dword [esp + 0x68], edi
jbe 0x412587
lea esp, [esp]
mov eax, edi
and eax, 1
cmp eax, ebp
jne 0x41257a
cmp edi, dword [esp + 0x68]
jbe 0x4124f8
call fcn.0042c040
cmp dword [esp + 0x6c], 0x10
mov eax, dword [esp + 0x58]
jae 0x412507
lea eax, [esp + 0x58]
mov bl, byte [eax + edi]
or ecx, 0xffffffff
sub ecx, dword [esp + 0x4c]
cmp ecx, 1
ja 0x41251b
call fcn.0042b8bc
mov esi, dword [esp + 0x4c]
add esi, 1
cmp esi, 0xfffffffe
jbe 0x41252c
call fcn.0042b8bc
mov eax, dword [esp + 0x50]
cmp eax, esi
jae 0x41283f
mov edx, dword [esp + 0x4c]
push edx
push esi
lea ecx, [esp + 0x40]
call fcn.004037c9
mov eax, dword [esp + 0x50]
test esi, esi
jbe 0x41257a
cmp eax, 0x10
mov eax, dword [esp + 0x3c]
jae 0x41255c
lea eax, [esp + 0x3c]
mov ecx, dword [esp + 0x4c]
mov byte [eax + ecx], bl
cmp dword [esp + 0x50], 0x10
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x4c], esi
jae 0x412576
lea eax, [esp + 0x3c]
mov byte [eax + esi], 0
add edi, 1
cmp edi, dword [esp + 0x68]
jb 0x4124e0
mov edi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x60]
mov esi, dword [esp + 0x64]
mov dword [esp + 0x58], edi
mov edi, dword [esp + 0x40]
mov dword [esp + 0x5c], edi
mov edi, dword [esp + 0x44]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x6c]
cmp eax, 0x10
mov dword [esp + 0x60], edi
mov edi, dword [esp + 0x48]
mov dword [esp + 0x68], edx
mov edx, dword [esp + 0x50]
mov dword [esp + 0x64], edi
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x48], esi
mov dword [esp + 0x6c], edx
mov dword [esp + 0x50], eax
jb 0x4125f5
push ecx
call fcn.0042bbfa
add esp, 4
xor ebx, ebx
mov ebp, 7
mov dword [esp + 0xa4], ebp
mov dword [esp + 0xa0], ebx
mov word [esp + 0x90], bx
mov eax, dword [esp + 0xe0]
push eax
push 0x4471c8
lea ecx, [esp + 0x94]
mov byte [esp + 0xd8], 9
call fcn.00404f8a
mov dword [esp + 0x90], ebp
mov dword [esp + 0x8c], ebx
mov word [esp + 0x7c], bx
mov ecx, dword [esp + 0xec]
push ecx
push 0x4471c8
lea ecx, [esp + 0x80]
mov byte [esp + 0xe0], 0xa
call fcn.00404f8a
push ebx
lea eax, [esp + 0xa0]
lea ecx, [esp + 0x4c]
call fcn.00406bb1
add esp, 0x14
lea edx, [esp + 0x54]
push edx
push eax
lea edi, [esp + 0x1c]
mov byte [esp + 0xd8], 0xb
call fcn.00413e40
add esp, 8
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x60]
mov byte [esp + 0xdc], 0xc
call fcn.0040336e
mov esi, 0x10
cmp dword [esp + 0x2c], esi
jb 0x4126c2
mov eax, dword [esp + 0x18]
push eax
call fcn.0042bbfa
add esp, 4
mov byte [esp + 0xd0], 0xa
cmp dword [esp + 0x50], esi
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], 0
jb 0x4126ee
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.0042bbfa
add esp, 4
push ebx
lea eax, [esp + 0x74]
lea ecx, [esp + 0x3c]
call fcn.00406bb1
add esp, 4
push ebx
push eax
or eax, 0xffffffff
lea esi, [esp + 0x5c]
mov byte [esp + 0xd8], 0xd
call fcn.00413740
mov byte [esp + 0xd0], 0xa
cmp dword [esp + 0x50], 0x10
jb 0x412731
mov edx, dword [esp + 0x3c]
push edx
call fcn.0042bbfa
add esp, 4
mov edi, dword [esp + 0x30]
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x5c]
mov dword [edi + 0x18], 0xf
mov dword [edi + 0x14], ebx
push eax
mov ecx, edi
mov byte [edi + 4], 0
call fcn.0040336e
mov esi, 8
cmp dword [esp + 0x88], esi
jb 0x41276d
mov ecx, dword [esp + 0x74]
push ecx
call fcn.0042bbfa
add esp, 4
cmp dword [esp + 0xa4], esi
mov dword [esp + 0x88], ebp
mov dword [esp + 0x84], ebx
mov word [esp + 0x74], bx
jb 0x412799
mov edx, dword [esp + 0x90]
push edx
call fcn.0042bbfa
add esp, 4
cmp dword [esp + 0xc0], esi
mov dword [esp + 0xa4], ebp
mov dword [esp + 0xa0], ebx
mov word [esp + 0x90], bx
jb 0x4127c8
mov eax, dword [esp + 0xac]
push eax
call fcn.0042bbfa
add esp, 4
cmp dword [esp + 0x6c], 0x10
mov dword [esp + 0xc0], ebp
mov dword [esp + 0xbc], ebx
mov word [esp + 0xac], bx
jb 0x4127f2
mov ecx, dword [esp + 0x58]
push ecx
call fcn.0042bbfa
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0xc8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.0042b9ba
add esp, 0xc0
ret 0x10
test esi, esi
jne 0x4123ed
cmp eax, 0x10
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x4c], esi
jae 0x412837
lea eax, [esp + 0x3c]
mov byte [eax], 0
jmp 0x41241a
test esi, esi
jne 0x41254d
cmp eax, 0x10
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x4c], esi
jae 0x412858
lea eax, [esp + 0x3c]
mov byte [eax], 0
jmp 0x41257a