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

Disassembly:
push 0xffffffffffffffff
push 0x57da7d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc0
push ebx
push ebp
mov ebp, ecx
xor ebx, ebx
mov ecx, 0x596bf8
push esi
mov eax, dword [ebp + 0xd48]
push edi
mov dword [esp + 0x44], ebp
mov byte [esp + 0x22], bl
mov byte [esp + 0x23], bl
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x88], ecx
mov dword [esp + 0x90], eax
mov dword [esp + 0xd8], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x74], eax
mov byte [esp + 0x13], bl
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x78], ecx
mov dword [esp + 0x80], eax
mov dword [esp + 0x50], ebx
mov dword [esp + 0x4c], 0x596ce0
mov dword [esp + 0x54], ebx
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xb4], ebx
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xac], ebx
mov dword [esp + 0xb0], ebx
mov dword [esp + 0xa4], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], eax
mov edi, dword [esp + 0xe8]
xor esi, esi
mov ecx, edi
mov byte [esp + 0xd8], 6
mov eax, dword [edi]
mov dword [esp + 0x24], esi
call dword [eax + 0x68]
test eax, eax
jbe 0x475877
mov edx, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [edx + 0xac]
cmp al, 0xb
mov byte [esp + 0x40], al
je 0x475863
mov ecx, dword [esp + 0x40]
mov eax, dword [ebp]
push ecx
mov ecx, ebp
call dword [eax + 0x20]
cmp eax, ebx
mov dword [esp + 0x84], eax
je 0x475856
mov eax, dword [edi]
push esi
mov ecx, edi
call dword [eax + 0xb0]
mov edx, dword [edi]
mov byte [esp + 0x48], al
lea eax, [esp + 0x5c]
push esi
push eax
mov ecx, edi
call dword [edx + 0x78]
push eax
lea ecx, [esp + 0x90]
mov byte [esp + 0xdc], 7
call fcn.00404a90
mov eax, dword [esp + 0x5c]
mov byte [esp + 0xd8], 6
cmp eax, ebx
je 0x474f5a
push eax
lea ecx, [esp + 0x60]
call fcn.00411610
mov cl, byte [esp + 0x40]
mov al, byte [esp + 0x22]
cmp al, cl
mov dword [esp + 0x5c], ebx
jne 0x474fc0
mov al, byte [esp + 0x48]
mov cl, byte [esp + 0x23]
cmp cl, al
jne 0x474fc4
lea eax, [esp + 0x6c]
lea edx, [esp + 0x70]
neg eax
sbb eax, eax
push ebx
and eax, edx
lea ecx, [esp + 0x90]
push eax
call fcn.004124b0
cmp eax, 3
jne 0x474fc0
mov eax, dword [edi]
push esi
mov ecx, edi
call dword [eax + 0x84]
mov edx, dword [eax]
lea ecx, [esp + 0xa0]
push ecx
mov ecx, eax
call dword [edx + 0xac]
mov ecx, eax
call fcn.0041d450
jmp 0x475863
mov al, byte [esp + 0x48]
cmp al, bl
je 0x475847
cmp al, 0xff
je 0x475847
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x40]
and eax, 0xff
mov byte [esp + 0x11], bl
push eax
push ecx
mov ecx, ebp
call fcn.00471140
mov eax, dword [esp + 0x24]
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 0x84]
mov esi, eax
lea ecx, [esp + 0x4c]
cmp ecx, esi
je 0x475027
mov edx, dword [esp + 0x4c]
lea ecx, [esp + 0x4c]
call dword [edx + 0xc]
mov eax, dword [esi + 4]
mov dword [esp + 0x50], eax
mov esi, dword [esi + 8]
cmp esi, ebx
mov dword [esp + 0x54], esi
je 0x475027
inc dword [esi + 8]
mov ecx, dword [esp + 0x84]
mov eax, 1
cmp ecx, eax
mov dword [esp + 0x28], eax
jb 0x4757be
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x40]
mov edx, dword [ebp]
push eax
push ecx
mov ecx, ebp
call dword [edx + 0x24]
mov edx, dword [ebp + 0xd4c]
mov esi, dword [esp + 0x28]
mov ecx, eax
mov eax, dword [ebp + 0xd34]
add edx, esi
mov dword [esp + 0x9c], ecx
movsx eax, word [eax + edx*2 - 2]
cmp eax, ebx
mov dword [esp + 0x3c], eax
je 0x4757a0
cmp eax, 0xff
je 0x4757a0
cmp ecx, 1
mov dword [esp + 0x2c], 1
jb 0x4757a0
mov ecx, dword [esp + 0x18]
mov dl, byte [esp + 0x2c]
mov esi, dword [esp + 0x44]
mov byte [esp + 0x98], dl
mov edx, dword [esp + 0x28]
mov eax, dword [esi + 0xd4c]
xor ebp, ebp
add eax, edx
mov edx, dword [esi + 0xd34]
movsx edx, word [edx + eax*2 - 2]
mov dword [esp + 0x3c], edx
mov eax, dword [esp + 0x98]
xor edi, edi
and eax, 0xff
inc ebp
lea edx, [eax + edx*8]
mov eax, dword [esi + 0xd20]
mov di, word [eax + edx*2 - 0x10]
cmp edi, 0xffff
je 0x4751f6
cmp edi, ebx
je 0x4751f6
lea ecx, [edi - 1]
push ecx
lea ecx, [esi + 0xd6c]
call fcn.0046ffa0
add eax, 8
lea ecx, [esp + 0x18]
push eax
call fcn.00404a90
mov ecx, dword [esp + 0x18]
cmp ecx, ebx
je 0x47520a
mov eax, dword [ecx + 8]
cmp eax, ebx
je 0x47520a
dec eax
cmp eax, ebx
je 0x47520a
jbe 0x475222
cmp byte [ecx + 0xc], 0x40
jne 0x475222
push ebx
push 0x5ccd84
lea ecx, [esp + 0x20]
call fcn.00412440
cmp eax, 3
jne 0x4751a6
mov edx, dword [esp + 0xe0]
push ebx
push 0x5ccd80
lea esi, [edx + 4]
mov ecx, esi
call fcn.00412440
cmp eax, 3
je 0x4752a6
push ebx
push 0x5ccd7c
mov ecx, esi
call fcn.00412440
cmp eax, 3
je 0x4752a6
push ebx
push 0x5ccd78
mov ecx, esi
call fcn.00412440
cmp eax, 3
je 0x4752a6
push ebx
push str._WAS
lea ecx, [esp + 0x20]
call fcn.00412440
cmp eax, 3
jne 0x47526f
mov eax, dword [esp + 0xe0]
push ebx
push 0x5ccd6c
lea esi, [eax + 4]
mov ecx, esi
call fcn.00412440
cmp eax, 3
je 0x4752a6
push ebx
push str.WERE
mov ecx, esi
call fcn.00412440
cmp eax, 3
je 0x4752a6
jmp 0x47526f
cmp ecx, ebx
je 0x475204
push ecx
lea ecx, [esp + 0x1c]
call fcn.00411610
xor ecx, ecx
mov dword [esp + 0x18], ecx
mov edx, dword [esp + 0x3c]
mov eax, dword [esi + 0xd20]
shl edx, 4
movsx edx, word [edx + eax - 2]
mov dword [esp + 0x3c], edx
jmp 0x475273
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
neg eax
sbb eax, eax
lea edx, [esp + 0x98]
and eax, ecx
lea ecx, [esp + 0x3c]
push edx
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x70], esp
push eax
call fcn.00401ed0
mov ecx, esi
call fcn.00472890
cmp al, bl
je 0x47526f
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x475267
push eax
lea ecx, [esp + 0x1c]
call fcn.00411610
xor ecx, ecx
mov dword [esp + 0x18], ecx
jmp 0x475273
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x3c]
cmp edx, 0xffffffff
je 0x47577d
cmp ecx, ebx
je 0x475294
mov eax, dword [ecx + 8]
cmp eax, ebx
je 0x475294
dec eax
cmp eax, ebx
jne 0x47536a
cmp ebp, 5
jg 0x47536a
mov esi, dword [esp + 0x44]
jmp 0x4750c9
mov ecx, dword [esp + 0xe0]
lea eax, [esp + 0x68]
push eax
add ecx, 4
call fcn.00413320
mov edi, eax
sub esp, 0xc
mov eax, esp
mov dword [esp + 0x70], esp
mov dword [esp + 0xa0], eax
lea esi, [eax + 8]
mov dword [esi], ebx
mov dl, byte [esp + 0x34]
mov cl, byte [esp + 0x38]
cmp esi, edi
mov byte [esp + 0xe4], 9
mov dword [eax], ebx
mov byte [eax + 4], dl
mov byte [eax + 5], cl
je 0x475305
mov eax, dword [esi]
cmp eax, ebx
je 0x4752fb
push eax
mov ecx, esi
call fcn.00411610
mov edi, dword [edi]
cmp edi, ebx
mov dword [esi], edi
je 0x475305
inc dword [edi]
mov ecx, dword [esp + 0xf4]
mov eax, dword [esp + 0x30]
push eax
mov byte [esp + 0xe8], 0xa
mov edx, dword [ecx]
call dword [edx + 0x84]
mov edx, dword [eax]
mov ecx, eax
mov byte [esp + 0xe4], 8
call dword [edx + 0xac]
mov ecx, eax
call fcn.0041d6d0
mov eax, dword [esp + 0x68]
mov byte [esp + 0xd8], 6
cmp eax, ebx
je 0x475354
push eax
lea ecx, [esp + 0x6c]
call fcn.00411610
mov dword [esp + 0x68], ebx
mov byte [esp + 0x11], 1
mov dword [esp + 0x3c], 0xffffffff
jmp 0x475779
cmp edx, 0xffffffff
je 0x47577d
cmp edi, 0xffff
je 0x47577d
mov eax, dword [esp + 0xe4]
mov eax, dword [eax + 0xc]
cmp eax, ebx
jne 0x475560
mov ebp, dword [esp + 0xe8]
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x58]
push eax
mov edx, dword [ebp]
push ecx
mov ecx, ebp
call dword [edx + 0x78]
mov esi, eax
lea edx, [esp + 0x34]
mov byte [esp + 0xd8], 0xb
cmp edx, esi
je 0x4753da
mov eax, dword [esp + 0x34]
cmp eax, ebx
je 0x4753ce
push eax
lea ecx, [esp + 0x38]
call fcn.00411610
mov esi, dword [esi]
cmp esi, ebx
mov dword [esp + 0x34], esi
je 0x4753da
inc dword [esi]
mov eax, dword [esp + 0x58]
mov byte [esp + 0xd8], 6
cmp eax, ebx
je 0x4753f4
push eax
lea ecx, [esp + 0x5c]
call fcn.00411610
lea eax, [esp + 0x78]
lea ecx, [esp + 0x7c]
neg eax
sbb eax, eax
lea edx, [esp + 0x34]
and eax, ecx
lea ecx, [esp + 0x30]
push eax
lea eax, [esp + 0x16]
push eax
mov eax, dword [esp + 0x34]
neg ecx
push eax
mov eax, dword [esp + 0x34]
sbb ecx, ecx
push eax
and ecx, edx
mov edx, dword [esp + 0x54]
lea eax, [esp + 0x5c]
mov dword [esp + 0x68], ebx
mov esi, dword [edx]
push eax
push ecx
mov ecx, edx
call dword [esi + 8]
cmp byte [esp + 0x12], bl
je 0x475779
lea ecx, [esp + 0x30]
lea edx, [esp + 0x78]
push ecx
lea eax, [esp + 0xc8]
push edx
push eax
call fcn.00414810
mov esi, eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xd8], 0xc
cmp ecx, esi
je 0x47548e
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x47547a
push eax
lea ecx, [esp + 0x1c]
call fcn.00411610
mov eax, dword [esi + 4]
cmp eax, ebx
mov dword [esp + 0x18], eax
je 0x475487
inc dword [eax]
mov edx, dword [esi + 8]
mov dword [esp + 0x1c], edx
lea esi, [esp + 0xc4]
lea eax, [esp + 0xc8]
neg esi
sbb esi, esi
mov byte [esp + 0xd8], 6
and esi, eax
mov eax, dword [esi]
cmp eax, ebx
je 0x4754b8
push eax
mov ecx, esi
call fcn.00411610
lea ecx, [esp + 0x14]
mov dword [esi], ebx
call fcn.00414a80
lea ecx, [esp + 0x18]
call fcn.004133e0
mov eax, dword [esp + 0xe0]
cmp eax, ebx
je 0x4754dc
add eax, 4
jmp 0x4754de
xor eax, eax
push ebx
push eax
lea ecx, [esp + 0x20]
call fcn.004124b0
cmp eax, 3
jne 0x475779
lea esi, [esp + 0x30]
lea ecx, [esp + 0x34]
neg esi
sbb esi, esi
sub esp, 0xc
mov eax, esp
and esi, ecx
mov dword [esp + 0xa0], esp
mov dword [esp + 0x70], eax
lea edi, [eax + 8]
mov dword [edi], ebx
mov dl, byte [esp + 0x34]
mov cl, byte [esp + 0x38]
cmp edi, esi
mov byte [esp + 0xe4], 0xd
mov dword [eax], ebx
mov byte [eax + 4], dl
mov byte [eax + 5], cl
je 0x475549
mov eax, dword [edi]
cmp eax, ebx
je 0x47553f
push eax
mov ecx, edi
call fcn.00411610
mov esi, dword [esi]
cmp esi, ebx
mov dword [edi], esi
je 0x475549
inc dword [esi]
mov eax, dword [esp + 0x30]
mov edx, dword [ebp]
mov byte [esp + 0xe4], 0xe
push eax
mov ecx, ebp
jmp 0x475755
xor esi, esi
cmp eax, ebx
jbe 0x47577d
mov ebp, dword [esp + 0xe4]
push esi
mov ecx, ebp
call fcn.00418f60
cmp dword [eax], edi
je 0x47558a
mov eax, dword [ebp + 0xc]
inc esi
cmp esi, eax
jb 0x475571
jmp 0x475779
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0xe8]
push edx
lea edx, [esp + 0x64]
mov eax, dword [ecx]
push edx
call dword [eax + 0x78]
mov esi, eax
lea eax, [esp + 0x34]
mov byte [esp + 0xd8], 0xf
cmp eax, esi
je 0x4755d0
mov eax, dword [esp + 0x34]
cmp eax, ebx
je 0x4755c4
push eax
lea ecx, [esp + 0x38]
call fcn.00411610
mov esi, dword [esi]
cmp esi, ebx
mov dword [esp + 0x34], esi
je 0x4755d0
inc dword [esi]
mov eax, dword [esp + 0x60]
mov byte [esp + 0xd8], 6
cmp eax, ebx
je 0x4755ea
push eax
lea ecx, [esp + 0x64]
call fcn.00411610
lea eax, [esp + 0x78]
lea ecx, [esp + 0x7c]
neg eax
sbb eax, eax
lea edx, [esp + 0x34]
and eax, ecx
lea ecx, [esp + 0x30]
push eax
lea eax, [esp + 0x16]
push eax
mov eax, dword [esp + 0x34]
neg ecx
push eax
mov eax, dword [esp + 0x34]
sbb ecx, ecx
push eax
and ecx, edx
mov edx, dword [esp + 0x54]
lea eax, [esp + 0x5c]
mov dword [esp + 0x70], ebx
mov esi, dword [edx]
push eax
push ecx
mov ecx, edx
call dword [esi + 8]
cmp byte [esp + 0x12], bl
je 0x475779
lea ecx, [esp + 0x30]
lea edx, [esp + 0x78]
push ecx
lea eax, [esp + 0xbc]
push edx
push eax
call fcn.00414810
mov esi, eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xd8], 0x10
cmp ecx, esi
je 0x475684
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x475670
push eax
lea ecx, [esp + 0x1c]
call fcn.00411610
mov eax, dword [esi + 4]
cmp eax, ebx
mov dword [esp + 0x18], eax
je 0x47567d
inc dword [eax]
mov edx, dword [esi + 8]
mov dword [esp + 0x1c], edx
lea esi, [esp + 0xb8]
lea eax, [esp + 0xbc]
neg esi
sbb esi, esi
mov byte [esp + 0xd8], 6
and esi, eax
mov eax, dword [esi]
cmp eax, ebx
je 0x4756ae
push eax
mov ecx, esi
call fcn.00411610
lea ecx, [esp + 0x14]
mov dword [esi], ebx
call fcn.00414a80
lea ecx, [esp + 0x18]
call fcn.004133e0
mov eax, dword [esp + 0xe0]
cmp eax, ebx
je 0x4756d2
add eax, 4
jmp 0x4756d4
xor eax, eax
push ebx
push eax
lea ecx, [esp + 0x20]
call fcn.004124b0
cmp eax, 3
jne 0x475779
lea esi, [esp + 0x30]
lea ecx, [esp + 0x34]
neg esi
sbb esi, esi
sub esp, 0xc
mov eax, esp
and esi, ecx
mov dword [esp + 0xa0], esp
mov dword [esp + 0x70], eax
lea edi, [eax + 8]
mov dword [edi], ebx
mov dl, byte [esp + 0x34]
mov cl, byte [esp + 0x38]
cmp edi, esi
mov byte [esp + 0xe4], 0x11
mov dword [eax], ebx
mov byte [eax + 4], dl
mov byte [eax + 5], cl
je 0x47573f
mov eax, dword [edi]
cmp eax, ebx
je 0x475735
push eax
mov ecx, edi
call fcn.00411610
mov esi, dword [esi]
cmp esi, ebx
mov dword [edi], esi
je 0x47573f
inc dword [esi]
mov ecx, dword [esp + 0xf4]
mov eax, dword [esp + 0x30]
mov byte [esp + 0xe4], 0x12
push eax
mov edx, dword [ecx]
call dword [edx + 0x84]
mov edx, dword [eax]
mov ecx, eax
mov byte [esp + 0xe4], 6
call dword [edx + 0xac]
mov ecx, eax
call fcn.0041d6d0
mov byte [esp + 0x11], 1
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x9c]
inc eax
cmp eax, edx
mov dword [esp + 0x2c], eax
jbe 0x47509d
mov ebp, dword [esp + 0x44]
mov edi, dword [esp + 0xe8]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x84]
inc eax
cmp eax, ecx
mov dword [esp + 0x28], eax
jbe 0x47503f
cmp byte [esp + 0x11], bl
jne 0x4757d8
mov ecx, dword [esp + 0x24]
mov eax, dword [edi]
push 1
push ecx
mov ecx, edi
call dword [eax + 0xa8]
mov esi, dword [esp + 0x24]
jmp 0x475863
mov al, byte [esp + 0x48]
mov dl, byte [esp + 0x40]
mov byte [esp + 0x23], al
mov eax, dword [esp + 0x70]
cmp eax, ebx
mov byte [esp + 0x13], 1
mov byte [esp + 0x22], dl
je 0x4757ff
push eax
lea ecx, [esp + 0x74]
call fcn.00411610
mov eax, dword [esp + 0x8c]
cmp eax, ebx
mov dword [esp + 0x70], eax
je 0x475810
inc dword [eax]
mov ecx, dword [esp + 0x90]
mov eax, dword [esp + 0x24]
mov edx, dword [edi]
mov dword [esp + 0x74], ecx
push eax
mov ecx, edi
call dword [edx + 0x84]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xac]
push eax
lea ecx, [esp + 0xa4]
call fcn.0041d450
mov esi, dword [esp + 0x24]
jmp 0x475863
mov eax, dword [edi]
push esi
mov ecx, edi
call dword [eax + 0xc8]
test al, al
jne 0x475863
mov edx, dword [edi]
push 1
push esi
mov ecx, edi
call dword [edx + 0xa8]
mov eax, dword [edi]
inc esi
mov ecx, edi
mov dword [esp + 0x24], esi
call dword [eax + 0x68]
cmp esi, eax
jb 0x474edb
lea esi, [esp + 0x14]
lea ecx, [esp + 0x18]
neg esi
sbb esi, esi
mov byte [esp + 0xd8], 5
and esi, ecx
mov eax, dword [esi]
cmp eax, ebx
je 0x47589b
push eax
mov ecx, esi
call fcn.00411610
lea ecx, [esp + 0xa0]
mov dword [esi], ebx
mov byte [esp + 0xd8], 4
call fcn.0041d410
mov eax, dword [esp + 0x54]
mov byte [esp + 0xd8], 3
cmp eax, ebx
mov dword [esp + 0x4c], 0x5968f0
je 0x4758e8
mov ecx, dword [eax + 8]
dec ecx
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x54]
cmp dword [ecx + 8], ebx
jne 0x4758e4
cmp ecx, ebx
je 0x4758e4
mov edx, dword [ecx]
push 1
call dword [edx + 4]
mov dword [esp + 0x54], ebx
lea esi, [esp + 0x78]
lea eax, [esp + 0x7c]
neg esi
sbb esi, esi
mov byte [esp + 0xd8], 2
and esi, eax
mov eax, dword [esi]
cmp eax, ebx
je 0x47590c
push eax
mov ecx, esi
call fcn.00411610
mov dword [esi], ebx
lea esi, [esp + 0x30]
neg esi
sbb esi, esi
lea ecx, [esp + 0x34]
and esi, ecx
mov byte [esp + 0xd8], 1
mov eax, dword [esi]
cmp eax, ebx
je 0x475932
push eax
mov ecx, esi
call fcn.00411610
mov dword [esi], ebx
lea esi, [esp + 0x6c]
neg esi
sbb esi, esi
lea edx, [esp + 0x70]
and esi, edx
mov byte [esp + 0xd8], bl
mov eax, dword [esi]
cmp eax, ebx
je 0x475957
push eax
mov ecx, esi
call fcn.00411610
mov dword [esi], ebx
lea esi, [esp + 0x88]
neg esi
sbb esi, esi
lea eax, [esp + 0x8c]
and esi, eax
mov dword [esp + 0xd8], 0xffffffff
mov eax, dword [esi]
cmp eax, ebx
je 0x475986
push eax
mov ecx, esi
call fcn.00411610
mov ecx, dword [esp + 0xd0]
mov al, byte [esp + 0x13]
mov dword [esi], ebx
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xcc
ret 0xc