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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x7564ee
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
push ebx
push esi
push edi
mov eax, dword [0x773b90]
xor eax, esp
push eax
lea eax, [esp + 0xf8]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x560]
test eax, eax
jne 0x545c2b
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
lea eax, [esp + 0x30]
push eax
lea ebx, [esi + 0xae10]
mov dword [esp + 0x34], 0x3a
call fcn.0054b780
xor al, al
mov byte [esi + 0xae30], al
mov byte [esi + 0xae31], al
mov ecx, dword [esp + 0xf8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp eax, 1
jne 0x546419
mov edx, dword [esi + 0x30]
xor edi, edi
lea ebx, [edx - 2]
cmp ebx, 0x4a
mov dword [esp + 0x20], edi
ja case.0x545ce5.7
movzx ecx, byte [ebx + 0x546598]
jmp dword [ecx*4 + 0x546590]
mov eax, dword [esi + 0xae14]
test eax, eax
jne 0x545c78
push 0x758ee8
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x28], 0x80004005
call sub.msvcrt.dll__CxxThrowException
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [esi + 0xae10]
lea ecx, [eax + ecx*4 - 0x1c]
xor eax, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x34], eax
mov eax, dword [ecx + 8]
mov dword [esp + 0x38], eax
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x20], ecx
mov edi, dword [esp + 0x20]
mov dword [esp + 0x3c], eax
mov eax, dword [ecx + 0x10]
mov ecx, dword [ecx + 0x18]
mov dword [esp + 0x30], edx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ecx
cmp ebx, 0x4a
ja case.0x545ce5.7
movzx eax, byte [ebx + 0x54661c]
jmp dword [eax*4 + 0x5465e4]
lea ecx, [esp + 0x30]
lea ebx, [esi + 0xae10]
push ecx
call fcn.0054b780
mov eax, dword [ebx + 4]
test eax, eax
jne 0x545d10
call fcn.0054b820
mov dword [eax + 8], eax
jmp case.0x545ce5.7
lea edx, [eax*8]
sub edx, eax
mov eax, dword [ebx]
lea eax, [eax + edx*4 - 0x1c]
mov dword [eax + 8], eax
jmp case.0x545ce5.7
cmp dword [edi], 0x1f
je 0x545d5d
mov ecx, dword [esi + 0x550]
push ecx
push 0x4674f0
call fcn.00540d80
add esp, 8
push 0x758ee8
lea edx, [esp + 0x5c]
mov eax, esi
add dword [eax + 0x14], 1
push edx
mov dword [esp + 0x60], 0x80004005
call sub.msvcrt.dll__CxxThrowException
cmp byte [edi + 4], 0
je 0x54606b
mov eax, dword [esi + 0x550]
push eax
push 0x467558
call fcn.00540d80
add esp, 8
push 0x758ee8
lea ecx, [esp + 0x60]
mov eax, esi
add dword [eax + 0x14], 1
push ecx
mov dword [esp + 0x64], 0x80004005
call sub.msvcrt.dll__CxxThrowException
cmp dword [edi], 0x1f
je 0x545f59
mov edx, dword [esi + 0x550]
push edx
push 0x4675a8
call fcn.00540d80
add esp, 8
mov eax, esi
add dword [eax + 0x14], 1
push 0x758ee8
lea eax, [esp + 0x58]
push eax
mov dword [esp + 0x5c], 0x80004005
call sub.msvcrt.dll__CxxThrowException
add eax, 0xffffffff
mov dword [esi + 0xae14], eax
jmp case.0x545ce5.7
lea ecx, [esp + 0x30]
lea ebx, [esi + 0xae10]
push ecx
call fcn.0054b780
mov eax, dword [ebx + 4]
test eax, eax
jne 0x545e0b
call fcn.0054b820
mov dword [eax + 0xc], eax
mov dword [eax + 0x10], 0
jmp case.0x545ce5.7
lea edx, [eax*8]
sub edx, eax
mov eax, dword [ebx]
lea eax, [eax + edx*4 - 0x1c]
mov dword [eax + 0xc], eax
mov dword [eax + 0x10], 0
jmp case.0x545ce5.7
cmp dword [edi], 0x30
je 0x545f59
mov ecx, dword [esi + 0x550]
push ecx
push 0x467610
call fcn.00540d80
add esp, 8
push 0x758ee8
lea edx, [esp + 0x54]
mov eax, esi
add dword [eax + 0x14], 1
push edx
mov dword [esp + 0x58], 0x80004005
call sub.msvcrt.dll__CxxThrowException
push 0x14
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x4c], eax
test eax, eax
mov dword [esp + 0x100], 0
je 0x545e8c
mov esi, eax
call fcn.0054c000
mov esi, dword [ebp + 8]
jmp 0x545e8e
xor eax, eax
test eax, eax
mov dword [esp + 0x100], 0xffffffff
mov dword [esp + 0x48], eax
jne 0x545eb8
push 0x758ee8
lea eax, [esp + 0x64]
push eax
mov dword [esp + 0x68], 0x8007000e
call sub.msvcrt.dll__CxxThrowException
lea ecx, [esp + 0x30]
lea ebx, [esi + 0xae10]
push ecx
call fcn.0054b780
mov eax, dword [ebx + 4]
test eax, eax
jne 0x545ee3
call fcn.0054b820
mov dword [eax + 0x10], eax
mov dword [eax + 0xc], 0
jmp case.0x545ce5.7
lea edx, [eax*8]
sub edx, eax
mov eax, dword [ebx]
lea eax, [eax + edx*4 - 0x1c]
mov dword [eax + 0x10], eax
mov dword [eax + 0xc], 0
jmp case.0x545ce5.7
cmp dword [edi], 0x4c
je 0x545f3d
mov ecx, dword [esi + 0x550]
push ecx
push 0x467678
call fcn.00540d80
add esp, 8
push 0x758ee8
lea edx, [esp + 0x80]
mov eax, esi
add dword [eax + 0x14], 1
push edx
mov dword [esp + 0x84], 0x80004005
call sub.msvcrt.dll__CxxThrowException
mov eax, dword [edi + 0x18]
test eax, eax
je 0x545f52
mov esi, eax
call fcn.00540c50
mov esi, dword [ebp + 8]
mov edi, dword [esp + 0x20]
mov dword [edi + 0x18], 0
mov eax, dword [esi + 0xae14]
test eax, eax
jne 0x545dd2
call fcn.0054b820
jmp case.0x545ce5.7
cmp dword [edi], 0x4c
je 0x545fad
mov eax, dword [esi + 0x550]
push eax
push 0x4676e8
call fcn.00540d80
add esp, 8
push 0x758ee8
lea ecx, [esp + 0x88]
mov eax, esi
add dword [eax + 0x14], 1
push ecx
mov dword [esp + 0x8c], 0x80004005
call sub.msvcrt.dll__CxxThrowException
mov edx, dword [edi + 0x10]
mov eax, dword [edx + 0x18]
lea ebx, [esi + 0xd8]
push eax
call fcn.0054c0a0
test eax, eax
je 0x545fff
mov ecx, dword [esi + 0x550]
fld dword [ebx]
mov edx, dword [ebx]
push ecx
sub esp, 8
fstp qword [esp]
push edx
push 0x467760
call fcn.00540d80
add esp, 0x14
mov eax, esi
add dword [eax + 0x14], 1
push 0x758ee8
lea eax, [esp + 0x68]
push eax
mov dword [esp + 0x6c], 0x80004005
call sub.msvcrt.dll__CxxThrowException
mov ecx, dword [edi + 0x10]
mov ecx, dword [ecx + 0x18]
mov eax, ebx
call fcn.0054c110
jmp case.0x545ce5.7
cmp dword [edi], 0x4c
je 0x546047
mov edx, dword [esi + 0x550]
push edx
push 0x4677c0
call fcn.00540d80
add esp, 8
mov eax, esi
add dword [eax + 0x14], 1
push 0x758ee8
lea eax, [esp + 0x70]
push eax
mov dword [esp + 0x74], 0x80004005
call sub.msvcrt.dll__CxxThrowException
cmp byte [edi + 4], 0
je 0x54606b
mov ecx, dword [esi + 0x550]
push ecx
push 0x467838
call fcn.00540d80
mov edi, dword [esp + 0x28]
mov eax, esi
add esp, 8
add dword [eax + 0x14], 1
mov byte [edi + 4], 1
jmp case.0x545ce5.7
mov edi, dword [esi + 0xae14]
sub edi, 1
mov dword [esp + 0x20], edi
js 0x54614d
lea ebx, [edi*8]
sub ebx, edi
add ebx, ebx
add ebx, ebx
cmp edi, dword [esi + 0xae14]
jb 0x5460a3
call fcn.0054b820
jmp 0x5460c1
mov esi, dword [esi + 0xae10]
add esi, ebx
mov ecx, 7
lea edi, [esp + 0x30]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 8]
mov edi, dword [esp + 0x20]
lea eax, [esp + 0x30]
cmp dword [eax + 0xc], 0
jne case.0x545ce5.7
cmp edi, dword [esi + 0xae14]
jb 0x5460da
call fcn.0054b820
jmp 0x5460fe
mov esi, dword [esi + 0xae10]
add esi, ebx
mov ecx, 7
lea edi, [esp + 0x8c]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 8]
mov edi, dword [esp + 0x20]
lea eax, [esp + 0x8c]
cmp dword [eax], 0x3a
je 0x54614d
cmp edi, dword [esi + 0xae14]
jb 0x546112
call fcn.0054b820
jmp 0x546136
mov esi, dword [esi + 0xae10]
add esi, ebx
mov ecx, 7
lea edi, [esp + 0xa8]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 8]
mov edi, dword [esp + 0x20]
lea eax, [esp + 0xa8]
cmp dword [eax], 0x2c
je 0x54614d
sub edi, 1
sub ebx, 0x1c
test edi, edi
mov dword [esp + 0x20], edi
jge 0x546094
mov edx, dword [esi + 0x550]
push edx
push 0x467878
call fcn.00540d80
mov eax, dword [ebp + 8]
add esp, 8
add dword [eax + 0x14], 1
mov esi, eax
jmp case.0x545ce5.7
cmp dword [edi + 0x10], 0
jne case.0x545ce5.7
cmp dword [edi + 0xc], 0
jne case.0x545ce5.7
mov eax, dword [esi + 0x550]
push eax
push 0x4678c8
call fcn.00540d80
mov eax, esi
add esp, 8
add dword [eax + 0x14], 1
jmp case.0x545ce5.7
xor ecx, ecx
cmp edx, 5
sete cl
lea eax, [esi + 0xae1c]
push eax
lea ebx, [esp + 0x2c]
imul ecx, ecx, 0xd0
mov edx, dword [ecx + esi + 0x40]
mov dword [esp + 0x2c], edx
call fcn.0054b930
test eax, eax
je 0x5461d5
mov byte [eax + 4], 1
jmp case.0x545ce5.7
lea edi, [esp + 0x28]
lea eax, [esi + 0xae1c]
mov byte [esp + 0x2c], 1
mov byte [esp + 0x2d], 0
call fcn.0054b9a0
jmp case.0x545ce5.7
mov eax, dword [esi + 0x40]
mov dword [esp + 0x28], eax
lea eax, [esi + 0xae1c]
push eax
lea ebx, [esp + 0x2c]
call fcn.0054b930
mov ebx, eax
test ebx, ebx
je 0x54623f
cmp byte [ebx + 5], 0
je 0x546239
mov ecx, dword [esi + 0x550]
mov edx, dword [esp + 0x28]
push ecx
push edx
push 0x467918
call fcn.00540d80
mov edi, dword [esp + 0x2c]
mov eax, esi
add esp, 0xc
add dword [eax + 0x14], 1
mov byte [ebx + 5], 1
jmp 0x54625c
lea edi, [esp + 0x28]
lea eax, [esi + 0xae1c]
mov byte [esp + 0x2c], 0
mov byte [esp + 0x2d], 1
call fcn.0054b9a0
mov edi, dword [esp + 0x20]
cmp byte [esi + 0xae30], 0
jne 0x54629c
mov eax, dword [esi + 0x550]
mov ecx, dword [esp + 0x28]
push eax
push ecx
push 0x467958
call fcn.00540d80
mov eax, dword [ebp + 8]
add dword [eax + 0x14], 1
add esp, 0xc
push 0x758ee8
lea edx, [esp + 0x78]
push edx
mov dword [esp + 0x7c], 0x80004005
call sub.msvcrt.dll__CxxThrowException
mov edi, dword [edi]
cmp edi, 0x3a
je 0x5462df
cmp edi, 0x2c
je 0x5462df
mov eax, dword [esi + 0x550]
mov ecx, dword [esp + 0x28]
push eax
push ecx
push 0x4679b0
call fcn.00540d80
mov eax, dword [ebp + 8]
add dword [eax + 0x14], 1
add esp, 0xc
push 0x758ee8
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x2c], 0x80004005
call sub.msvcrt.dll__CxxThrowException
mov eax, dword [esi + 0xae14]
test eax, eax
lea ebx, [esi + 0xae10]
jne 0x5462f6
call fcn.0054b820
jmp 0x5462fc
add eax, 0xffffffff
mov dword [ebx + 4], eax
lea eax, [esp + 0x30]
push eax
call fcn.0054b780
mov eax, dword [ebx + 4]
test eax, eax
jne 0x546314
call fcn.0054b820
jmp 0x546323
mov edx, dword [ebx]
lea ecx, [eax*8]
sub ecx, eax
lea eax, [edx + ecx*4 - 0x1c]
mov dword [eax + 0x14], eax
mov ecx, dword [esi + 0x30]
lea eax, [ecx - 6]
cmp eax, 0x38
ja case.0x546338.7
movzx eax, byte [eax + 0x546678]
jmp dword [eax*4 + 0x546668]
mov byte [esi + 0xae30], 1
jmp case.0x546338.53
cmp byte [esi + 0xae30], 0
je case.0x546338.6
mov ecx, dword [esi + 0x550]
push ecx
push 0x467a18
call fcn.00540d80
mov eax, dword [ebp + 8]
add dword [eax + 0x14], 1
add esp, 8
push 0x758ee8
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x2c], 0x80004005
call sub.msvcrt.dll__CxxThrowException
mov byte [esi + 0xae30], 0
lea eax, [ecx - 2]
cmp eax, 0x33
ja case.0x546399.3
movzx eax, byte [eax + 0x5466c4]
jmp dword [eax*4 + 0x5466b4]
mov byte [esi + 0xae31], 0
mov ecx, dword [esp + 0xf8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov byte [esi + 0xae31], 1
mov ecx, dword [esp + 0xf8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp byte [esi + 0xae31], 0
je case.0x546399.6
mov ecx, dword [esi + 0x550]
push ecx
push 0x467a98
call fcn.00540d80
mov eax, dword [ebp + 8]
add dword [eax + 0x14], 1
add esp, 8
push 0x758ee8
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x2c], 0x80004005
call sub.msvcrt.dll__CxxThrowException
cmp eax, 2
jne case.0x546399.53
mov eax, dword [esi + 0xae24]
xor ebx, ebx
test eax, eax
mov dword [esp + 0x24], eax
jbe 0x5464f4
lea eax, [esi + 0xae1c]
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x20]
mov eax, ebx
lea edi, [esp + 0x28]
call fcn.0054baa0
cmp byte [eax + 4], 0
je 0x546492
mov ecx, dword [esp + 0x20]
mov eax, ebx
lea edi, [esp + 0x74]
call fcn.0054baa0
cmp byte [eax + 5], 0
jne 0x546492
mov ecx, dword [esp + 0x20]
mov eax, ebx
lea edi, [esp + 0x6c]
call fcn.0054baa0
mov ecx, dword [eax]
push ecx
push 0x467b1c
call fcn.00540d80
mov eax, dword [ebp + 8]
add esp, 8
add dword [eax + 0x14], 1
mov esi, eax
mov ecx, dword [esp + 0x20]
mov eax, ebx
lea edi, [esp + 0x64]
call fcn.0054baa0
cmp byte [eax + 4], 0
jne 0x5464e7
mov ecx, dword [esp + 0x20]
mov eax, ebx
lea edi, [esp + 0x84]
call fcn.0054baa0
cmp byte [eax + 5], 0
je 0x5464e7
mov ecx, dword [esp + 0x20]
mov eax, ebx
lea edi, [esp + 0x7c]
call fcn.0054baa0
mov edx, dword [eax]
push edx
push 0x467b40
call fcn.00540d80
mov eax, dword [ebp + 8]
add esp, 8
add dword [eax + 0x14], 1
mov esi, eax
add ebx, 1
cmp ebx, dword [esp + 0x24]
jb 0x546440
cmp dword [esi + 0xae14], 0
je case.0x546399.53
mov eax, dword [esi + 0xae14]
test eax, eax
jne 0x54651e
push 0x758ee8
lea eax, [esp + 0x50]
push eax
mov dword [esp + 0x54], 0x80004005
call sub.msvcrt.dll__CxxThrowException
mov edx, dword [esi + 0xae10]
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [edx + ecx*4 - 0x1c]
cmp eax, 0x3a
lea edi, [edx + ecx*4 - 0x1c]
je 0x546555
cmp eax, 0x2c
je 0x54655a
push 0x467b68
call fcn.00540d80
mov eax, dword [ebp + 8]
add esp, 4
add dword [eax + 0x14], 1
mov esi, eax
cmp dword [edi], 0x2c
jne case.0x546399.53
cmp byte [esi + 0xae30], 0
jne case.0x546399.53
push 0x467ba8
call fcn.00540d80
mov eax, dword [ebp + 8]
add esp, 4
add dword [eax + 0x14], 1
mov ecx, dword [esp + 0xf8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4