Function at 0x5409b0
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 0x54cdce
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
push ebx
push esi
push edi
mov eax, dword [0x54f048]
xor eax, esp
push eax
lea eax, [esp + 0xf8]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x564]
test eax, eax
jne 0x540a4b
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 + 0xb92c]
mov dword [esp + 0x34], 0x3a
call fcn.005469b0
xor al, al
mov byte [esi + 0xb94c], al
mov byte [esi + 0xb94d], 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 0x54122a
mov edx, dword [esi + 0x30]
xor edi, edi
lea ebx, [edx - 2]
mov dword [esp + 0x20], edi
cmp ebx, 0x4a
ja case.0x540b05.7
movzx ecx, byte [ebx + 0x5413a4]
jmp dword [ecx*4 + 0x54139c]
mov eax, dword [esi + 0xb930]
test eax, eax
jne 0x540a98
push 0x54d0a8
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 + 0xb92c]
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.0x540b05.7
movzx eax, byte [ebx + 0x541428]
jmp dword [eax*4 + 0x5413f0]
lea ecx, [esp + 0x30]
lea ebx, [esi + 0xb92c]
push ecx
call fcn.005469b0
mov eax, dword [ebx + 4]
test eax, eax
jne 0x540b30
call fcn.00546cd0
mov dword [eax + 8], eax
jmp case.0x540b05.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.0x540b05.7
cmp dword [edi], 0x1f
je 0x540b7c
mov ecx, dword [esi + 0x550]
push ecx
push 0x44e0f0
call fcn.0053b250
add esp, 8
push 0x54d0a8
lea edx, [esp + 0x5c]
mov eax, esi
inc dword [eax + 0x14]
push edx
mov dword [esp + 0x60], 0x80004005
call sub.msvcrt.dll__CxxThrowException
cmp byte [edi + 4], 0
je 0x540e80
mov eax, dword [esi + 0x550]
push eax
push 0x44e158
call fcn.0053b250
add esp, 8
push 0x54d0a8
lea ecx, [esp + 0x60]
mov eax, esi
inc dword [eax + 0x14]
push ecx
mov dword [esp + 0x64], 0x80004005
call sub.msvcrt.dll__CxxThrowException
cmp dword [edi], 0x1f
je 0x540d72
mov edx, dword [esi + 0x550]
push edx
push 0x44e1a8
call fcn.0053b250
add esp, 8
mov eax, esi
inc dword [eax + 0x14]
push 0x54d0a8
lea eax, [esp + 0x58]
push eax
mov dword [esp + 0x5c], 0x80004005
call sub.msvcrt.dll__CxxThrowException
dec eax
mov dword [esi + 0xb930], eax
jmp case.0x540b05.7
lea ecx, [esp + 0x30]
lea ebx, [esi + 0xb92c]
push ecx
call fcn.005469b0
mov eax, dword [ebx + 4]
test eax, eax
jne 0x540c26
call fcn.00546cd0
mov dword [eax + 0xc], eax
mov dword [eax + 0x10], 0
jmp case.0x540b05.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.0x540b05.7
cmp dword [edi], 0x30
je 0x540d72
mov ecx, dword [esi + 0x550]
push ecx
push 0x44e210
call fcn.0053b250
add esp, 8
push 0x54d0a8
lea edx, [esp + 0x54]
mov eax, esi
inc dword [eax + 0x14]
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
mov dword [esp + 0x100], 0
test eax, eax
je 0x540ca6
mov esi, eax
call fcn.00547200
mov esi, dword [ebp + 8]
jmp 0x540ca8
xor eax, eax
mov dword [esp + 0x100], 0xffffffff
mov dword [esp + 0x48], eax
test eax, eax
jne 0x540cd2
push 0x54d0a8
lea eax, [esp + 0x64]
push eax
mov dword [esp + 0x68], 0x8007000e
call sub.msvcrt.dll__CxxThrowException
lea ecx, [esp + 0x30]
lea ebx, [esi + 0xb92c]
push ecx
call fcn.005469b0
mov eax, dword [ebx + 4]
test eax, eax
jne 0x540cfd
call fcn.00546cd0
mov dword [eax + 0x10], eax
mov dword [eax + 0xc], 0
jmp case.0x540b05.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.0x540b05.7
cmp dword [edi], 0x4c
je 0x540d56
mov ecx, dword [esi + 0x550]
push ecx
push 0x44e278
call fcn.0053b250
add esp, 8
push 0x54d0a8
lea edx, [esp + 0x80]
mov eax, esi
inc dword [eax + 0x14]
push edx
mov dword [esp + 0x84], 0x80004005
call sub.msvcrt.dll__CxxThrowException
mov eax, dword [edi + 0x18]
test eax, eax
je 0x540d6b
mov esi, eax
call fcn.0053b0f0
mov edi, dword [esp + 0x20]
mov esi, dword [ebp + 8]
mov dword [edi + 0x18], 0
mov eax, dword [esi + 0xb930]
test eax, eax
jne 0x540bef
call fcn.00546cd0
jmp case.0x540b05.7
cmp dword [edi], 0x4c
je 0x540dc5
mov eax, dword [esi + 0x550]
push eax
push 0x44e2e8
call fcn.0053b250
add esp, 8
push 0x54d0a8
lea ecx, [esp + 0x88]
mov eax, esi
inc dword [eax + 0x14]
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.005472a0
test eax, eax
je 0x540e16
mov ecx, dword [esi + 0x550]
fld dword [ebx]
mov edx, dword [ebx]
push ecx
sub esp, 8
fstp qword [esp]
push edx
push 0x44e360
call fcn.0053b250
add esp, 0x14
mov eax, esi
inc dword [eax + 0x14]
push 0x54d0a8
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.00547310
jmp case.0x540b05.7
cmp dword [edi], 0x4c
je 0x540e5d
mov edx, dword [esi + 0x550]
push edx
push 0x44e3c0
call fcn.0053b250
add esp, 8
mov eax, esi
inc dword [eax + 0x14]
push 0x54d0a8
lea eax, [esp + 0x70]
push eax
mov dword [esp + 0x74], 0x80004005
call sub.msvcrt.dll__CxxThrowException
cmp byte [edi + 4], 0
je 0x540e80
mov ecx, dword [esi + 0x550]
push ecx
push 0x44e438
call fcn.0053b250
mov edi, dword [esp + 0x28]
mov eax, esi
add esp, 8
inc dword [eax + 0x14]
mov byte [edi + 4], 1
jmp case.0x540b05.7
mov edi, dword [esi + 0xb930]
sub edi, 1
mov dword [esp + 0x20], edi
js 0x540f67
lea ebx, [edi*8]
sub ebx, edi
add ebx, ebx
add ebx, ebx
lea esp, [esp]
cmp edi, dword [esi + 0xb930]
jb 0x540ebf
call fcn.00546cd0
jmp 0x540edd
mov esi, dword [esi + 0xb92c]
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.0x540b05.7
cmp edi, dword [esi + 0xb930]
jb 0x540ef6
call fcn.00546cd0
jmp 0x540f1a
mov esi, dword [esi + 0xb92c]
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 0x540f67
cmp edi, dword [esi + 0xb930]
jb 0x540f2e
call fcn.00546cd0
jmp 0x540f52
mov esi, dword [esi + 0xb92c]
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 0x540f67
dec edi
sub ebx, 0x1c
mov dword [esp + 0x20], edi
test edi, edi
jge 0x540eb0
mov edx, dword [esi + 0x550]
push edx
push 0x44e478
call fcn.0053b250
mov eax, dword [ebp + 8]
add esp, 8
inc dword [eax + 0x14]
mov esi, eax
jmp case.0x540b05.7
cmp dword [edi + 0x10], 0
jne case.0x540b05.7
cmp dword [edi + 0xc], 0
jne case.0x540b05.7
mov eax, dword [esi + 0x550]
push eax
push 0x44e4c8
call fcn.0053b250
mov eax, esi
add esp, 8
inc dword [eax + 0x14]
jmp case.0x540b05.7
xor ecx, ecx
cmp edx, 5
sete cl
lea eax, [esi + 0xb938]
push eax
lea ebx, [esp + 0x2c]
imul ecx, ecx, 0xd0
mov edx, dword [ecx + esi + 0x40]
mov dword [esp + 0x2c], edx
call fcn.00546e40
test eax, eax
je 0x540fed
mov byte [eax + 4], 1
jmp case.0x540b05.7
lea edi, [esp + 0x28]
lea eax, [esi + 0xb938]
mov byte [esp + 0x2c], 1
mov byte [esp + 0x2d], 0
call fcn.00546af0
jmp case.0x540b05.7
mov eax, dword [esi + 0x40]
mov dword [esp + 0x28], eax
lea eax, [esi + 0xb938]
push eax
lea ebx, [esp + 0x2c]
call fcn.00546e40
mov ebx, eax
test ebx, ebx
je 0x541056
cmp byte [ebx + 5], 0
je 0x541050
mov ecx, dword [esi + 0x550]
mov edx, dword [esp + 0x28]
push ecx
push edx
push 0x44e518
call fcn.0053b250
mov edi, dword [esp + 0x2c]
mov eax, esi
add esp, 0xc
inc dword [eax + 0x14]
mov byte [ebx + 5], 1
jmp 0x541073
lea edi, [esp + 0x28]
lea eax, [esi + 0xb938]
mov byte [esp + 0x2c], 0
mov byte [esp + 0x2d], 1
call fcn.00546af0
mov edi, dword [esp + 0x20]
cmp byte [esi + 0xb94c], 0
jne 0x5410b2
mov eax, dword [esi + 0x550]
mov ecx, dword [esp + 0x28]
push eax
push ecx
push 0x44e558
call fcn.0053b250
mov eax, dword [ebp + 8]
inc dword [eax + 0x14]
add esp, 0xc
push 0x54d0a8
lea edx, [esp + 0x78]
push edx
mov dword [esp + 0x7c], 0x80004005
call sub.msvcrt.dll__CxxThrowException
mov edi, dword [edi]
cmp edi, 0x3a
je 0x5410f4
cmp edi, 0x2c
je 0x5410f4
mov eax, dword [esi + 0x550]
mov ecx, dword [esp + 0x28]
push eax
push ecx
push 0x44e5b0
call fcn.0053b250
mov eax, dword [ebp + 8]
inc dword [eax + 0x14]
add esp, 0xc
push 0x54d0a8
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x2c], 0x80004005
call sub.msvcrt.dll__CxxThrowException
mov eax, dword [esi + 0xb930]
lea ebx, [esi + 0xb92c]
test eax, eax
jne 0x54110b
call fcn.00546cd0
jmp 0x54110f
dec eax
mov dword [ebx + 4], eax
lea eax, [esp + 0x30]
push eax
call fcn.005469b0
mov eax, dword [ebx + 4]
test eax, eax
jne 0x541127
call fcn.00546cd0
jmp 0x541136
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.0x54114b.7
movzx eax, byte [eax + 0x541484]
jmp dword [eax*4 + 0x541474]
mov byte [esi + 0xb94c], 1
jmp case.0x54114b.53
cmp byte [esi + 0xb94c], 0
je case.0x54114b.6
mov ecx, dword [esi + 0x550]
push ecx
push 0x44e618
call fcn.0053b250
mov eax, dword [ebp + 8]
inc dword [eax + 0x14]
add esp, 8
push 0x54d0a8
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x2c], 0x80004005
call sub.msvcrt.dll__CxxThrowException
mov byte [esi + 0xb94c], 0
lea eax, [ecx - 2]
cmp eax, 0x33
ja case.0x5411ab.3
movzx eax, byte [eax + 0x5414d0]
jmp dword [eax*4 + 0x5414c0]
mov byte [esi + 0xb94d], 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 + 0xb94d], 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 + 0xb94d], 0
je case.0x5411ab.6
mov ecx, dword [esi + 0x550]
push ecx
push 0x44e698
call fcn.0053b250
mov eax, dword [ebp + 8]
inc dword [eax + 0x14]
add esp, 8
push 0x54d0a8
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x2c], 0x80004005
call sub.msvcrt.dll__CxxThrowException
cmp eax, 2
jne case.0x5411ab.53
mov eax, dword [esi + 0xb940]
xor ebx, ebx
mov dword [esp + 0x24], eax
test eax, eax
jbe 0x541301
lea eax, [esi + 0xb938]
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x20]
mov eax, ebx
lea edi, [esp + 0x28]
call fcn.00546bf0
cmp byte [eax + 4], 0
je 0x5412a2
mov ecx, dword [esp + 0x20]
mov eax, ebx
lea edi, [esp + 0x74]
call fcn.00546bf0
cmp byte [eax + 5], 0
jne 0x5412a2
mov ecx, dword [esp + 0x20]
mov eax, ebx
lea edi, [esp + 0x6c]
call fcn.00546bf0
mov ecx, dword [eax]
push ecx
push 0x44e71c
call fcn.0053b250
mov eax, dword [ebp + 8]
add esp, 8
inc dword [eax + 0x14]
mov esi, eax
mov ecx, dword [esp + 0x20]
mov eax, ebx
lea edi, [esp + 0x64]
call fcn.00546bf0
cmp byte [eax + 4], 0
jne 0x5412f6
mov ecx, dword [esp + 0x20]
mov eax, ebx
lea edi, [esp + 0x84]
call fcn.00546bf0
cmp byte [eax + 5], 0
je 0x5412f6
mov ecx, dword [esp + 0x20]
mov eax, ebx
lea edi, [esp + 0x7c]
call fcn.00546bf0
mov edx, dword [eax]
push edx
push 0x44e740
call fcn.0053b250
mov eax, dword [ebp + 8]
add esp, 8
inc dword [eax + 0x14]
mov esi, eax
inc ebx
cmp ebx, dword [esp + 0x24]
jb 0x541251
cmp dword [esi + 0xb930], 0
je case.0x5411ab.53
mov eax, dword [esi + 0xb930]
test eax, eax
jne 0x54132b
push 0x54d0a8
lea eax, [esp + 0x50]
push eax
mov dword [esp + 0x54], 0x80004005
call sub.msvcrt.dll__CxxThrowException
mov edx, dword [esi + 0xb92c]
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [edx + ecx*4 - 0x1c]
lea edi, [edx + ecx*4 - 0x1c]
cmp eax, 0x3a
je 0x541361
cmp eax, 0x2c
je 0x541366
push 0x44e768
call fcn.0053b250
mov eax, dword [ebp + 8]
add esp, 4
inc dword [eax + 0x14]
mov esi, eax
cmp dword [edi], 0x2c
jne case.0x5411ab.53
cmp byte [esi + 0xb94c], 0
jne case.0x5411ab.53
push 0x44e7a8
call fcn.0053b250
mov eax, dword [ebp + 8]
add esp, 4
inc dword [eax + 0x14]
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