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

Disassembly:
push 0xffffffffffffffff
push 0x493afd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x104
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x30], ecx
xor ebx, ebx
lea ecx, [esp + 0x54]
push ebx
mov dword [esp + 0x120], ebx
call fcn.00431a20
push ebx
lea ecx, [esp + 0x18]
mov byte [esp + 0x120], 1
call fcn.00431a20
push ebx
lea ecx, [esp + 0x108]
mov byte [esp + 0x120], 2
call fcn.00431a20
lea ecx, [esp + 0x6c]
mov byte [esp + 0x11c], 3
call fcn.0042c2e0
mov eax, dword [0x4be818]
mov dword [esp + 0x34], eax
push ebx
lea ecx, [esp + 0x128]
mov byte [esp + 0x120], 5
call fcn.00484863
mov cl, byte [esp + 0x13]
mov esi, eax
mov byte [esp + 0x38], cl
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x3c]
push ebp
call fcn.0041d200
test al, al
je 0x41263e
mov edi, dword [esp + 0x3c]
mov ecx, ebp
mov edx, ecx
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x3c]
call fcn.0041d1e0
lea eax, [esp + 0x54]
push 1
lea ecx, [esp + 0x3c]
push eax
push ecx
lea ecx, [esp + 0x78]
mov byte [esp + 0x128], 6
call fcn.0042c370
and eax, 0xff
mov byte [esp + 0x11c], 5
mov esi, eax
mov eax, dword [esp + 0x3c]
cmp eax, ebx
je 0x41268f
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x412686
cmp al, 0xff
je 0x412686
dec al
mov byte [ecx], al
jmp 0x41268f
push ecx
call fcn.004849c1
add esp, 4
or edi, 0xffffffff
lea ecx, [esp + 0x124]
push edi
call fcn.004848b2
cmp esi, ebx
jne 0x4127bc
lea ecx, [esp + 0x34]
mov byte [esp + 0x11c], 4
call fcn.00484433
push 1
lea ecx, [esp + 0xf4]
mov byte [esp + 0x120], 9
call fcn.0041cfc0
push 1
lea ecx, [esp + 0xd0]
mov byte [esp + 0x120], 8
call fcn.0041cfc0
mov eax, dword [esp + 0xc8]
mov byte [esp + 0x11c], 7
cmp eax, ebx
je 0x412748
mov eax, dword [esp + 0xa8]
push ebx
mov ecx, eax
add eax, 0x20
mov dword [esp + 0xac], eax
call fcn.0041d570
mov eax, dword [esp + 0xc8]
dec eax
mov dword [esp + 0xc8], eax
je 0x412733
mov edx, dword [esp + 0xa8]
mov eax, dword [esp + 0xa4]
cmp edx, eax
jne 0x41273f
lea ecx, [esp + 0x9c]
call fcn.0041d320
cmp dword [esp + 0xc8], ebx
jne 0x4126f7
mov eax, dword [esp + 0x98]
mov byte [esp + 0x11c], 3
cmp eax, ebx
je 0x41276d
lea ecx, [esp + 0x6c]
call fcn.0041d010
cmp dword [esp + 0x98], ebx
jne 0x41275b
lea ecx, [esp + 0x104]
mov byte [esp + 0x11c], 2
call fcn.00431f40
lea ecx, [esp + 0x14]
mov byte [esp + 0x11c], 1
call fcn.00431f40
lea ecx, [esp + 0x54]
mov byte [esp + 0x11c], bl
call fcn.00431f40
lea ecx, [esp + 0x124]
mov dword [esp + 0x11c], edi
call fcn.00484433
xor eax, eax
jmp 0x41311d
lea ecx, [esp + 0x54]
call fcn.004321c0
cmp eax, 6
je 0x4128e3
lea ecx, [esp + 0x34]
mov byte [esp + 0x11c], 4
call fcn.00484433
push 1
lea ecx, [esp + 0xf4]
mov byte [esp + 0x120], 0xc
call fcn.0041cfc0
push 1
lea ecx, [esp + 0xd0]
mov byte [esp + 0x120], 0xb
call fcn.0041cfc0
mov eax, dword [esp + 0xc8]
mov byte [esp + 0x11c], 0xa
cmp eax, ebx
je 0x41286f
mov eax, dword [esp + 0xa8]
push ebx
mov ecx, eax
add eax, 0x20
mov dword [esp + 0xac], eax
call fcn.0041d570
mov eax, dword [esp + 0xc8]
dec eax
mov dword [esp + 0xc8], eax
je 0x41285a
mov eax, dword [esp + 0xa8]
mov ecx, dword [esp + 0xa4]
cmp eax, ecx
jne 0x412866
lea ecx, [esp + 0x9c]
call fcn.0041d320
cmp dword [esp + 0xc8], ebx
jne 0x41281e
mov eax, dword [esp + 0x98]
mov byte [esp + 0x11c], 3
cmp eax, ebx
je 0x412894
lea ecx, [esp + 0x6c]
call fcn.0041d010
cmp dword [esp + 0x98], ebx
jne 0x412882
lea ecx, [esp + 0x104]
mov byte [esp + 0x11c], 2
call fcn.00431f40
lea ecx, [esp + 0x14]
mov byte [esp + 0x11c], 1
call fcn.00431f40
lea ecx, [esp + 0x54]
mov byte [esp + 0x11c], bl
call fcn.00431f40
lea ecx, [esp + 0x124]
mov dword [esp + 0x11c], edi
call fcn.00484433
xor eax, eax
jmp 0x41311d
mov ebp, dword [esp + 0x128]
mov edx, dword [esp + 0x12c]
mov eax, dword [ebp + 4]
cmp eax, ebx
je 0x41290a
mov ecx, eax
mov eax, dword [eax]
mov ecx, dword [ecx + 8]
cmp dword [ecx + 0x50], edx
jne 0x412906
mov dword [ecx], ebx
cmp eax, ebx
jne 0x4128f8
lea ecx, [esp + 0x54]
call fcn.00432cb0
cmp eax, ebx
mov dword [esp + 0x68], eax
mov dword [esp + 0x2c], ebx
jle 0x412fab
mov ecx, dword [esp + 0x2c]
push ecx
lea ecx, [esp + 0x58]
call fcn.00432d60
push eax
lea ecx, [esp + 0x18]
call fcn.004320c0
mov edx, dword [esp + 0x30]
mov edi, dword [ebp + 4]
cmp dword [edx + 0x14], ebx
je 0x41294e
push str.userId
jmp 0x412953
push 0x4ba808
lea ecx, [esp + 0x18]
call fcn.00432ed0
push eax
call fcn.0040ab30
add esp, 4
cmp edi, ebx
mov dword [esp + 0x24], eax
je 0x41297d
mov ecx, edi
mov edi, dword [edi]
mov esi, dword [ecx + 8]
cmp dword [esi + 0x20], eax
je 0x4129b4
cmp edi, ebx
jne 0x41296d
push 0x58c
call fcn.00484998
add esp, 4
cmp eax, ebx
je 0x412c4d
mov edx, dword [0x4be818]
mov esi, eax
mov dword [eax + 0x14], edx
mov ecx, dword [0x4be818]
mov dword [eax + 0x18], ecx
mov edx, dword [0x4be818]
mov dword [eax + 0x1c], edx
jmp 0x412c4f
cmp dword [esi + 0x24], ebx
jne 0x4129d3
push 0x4ba804
lea ecx, [esp + 0x18]
call fcn.00432ed0
push eax
call fcn.0040ab30
add esp, 4
mov dword [esi + 0x24], eax
push str.userName
lea ecx, [esp + 0x18]
call fcn.00432ed0
push eax
lea eax, [esp + 0x68]
push eax
call fcn.0040ac10
add esp, 8
lea ecx, [esi + 0x14]
push eax
mov byte [esp + 0x120], 0xd
call fcn.0048456c
lea ecx, [esp + 0x64]
mov byte [esp + 0x11c], 5
call fcn.00484433
push str.headPic
lea ecx, [esp + 0x18]
call fcn.00432ed0
lea ecx, [esp + 0x50]
push eax
push ecx
call fcn.0040ac10
add esp, 8
lea ecx, [esi + 0x18]
push eax
mov byte [esp + 0x120], 0xe
call fcn.0048456c
lea ecx, [esp + 0x50]
mov byte [esp + 0x11c], 5
call fcn.00484433
push str.yellowlevel
lea ecx, [esp + 0x18]
call fcn.00432ed0
push eax
call fcn.0040ab30
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esi + 0x34], eax
push str.yellowstatus
call fcn.00432ed0
push eax
call fcn.0040ab30
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esi + 0x38], eax
push str.money
call fcn.00432ed0
push eax
call fcn.0040ab30
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esi + 0x30], eax
push 0x4ba7c8
call fcn.00432ed0
push eax
call fcn.0040ab30
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esi + 0x2c], eax
push 0x4ba7c4
call fcn.00432ed0
push eax
call fcn.0040ab30
add esp, 4
cmp eax, ebx
je 0x412c38
mov edi, dword [esi + 0x588]
cmp edi, ebx
jne 0x412bfb
push 0x94
call fcn.00484998
add esp, 4
cmp eax, ebx
je 0x412b3b
mov edx, dword [0x4be818]
mov edi, eax
mov dword [eax + 0x10], edx
mov ecx, dword [0x4be818]
mov dl, byte [esp + 0x13]
mov dword [eax + 0x14], ecx
mov cl, byte [esp + 0x13]
mov byte [eax + 0x48], dl
mov dl, byte [esp + 0x13]
mov dword [eax + 0x4c], ebx
mov dword [eax + 0x50], ebx
mov dword [eax + 0x54], ebx
mov byte [eax + 0x58], cl
mov dword [eax + 0x5c], ebx
mov dword [eax + 0x60], ebx
mov dword [eax + 0x64], ebx
mov byte [eax + 0x68], dl
mov dword [eax + 0x6c], ebx
mov dword [eax + 0x70], ebx
mov dword [eax + 0x74], ebx
jmp 0x412b3d
xor edi, edi
mov dword [edi + 0x80], ebx
mov dword [edi + 0x88], ebx
mov dword [edi], ebx
mov dword [edi + 0x40], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0x3c], ebx
mov eax, dword [esi + 0x20]
mov dword [esp + 0x28], edi
mov dword [edi + 0x18], eax
mov ecx, dword [esi + 0x28]
mov dword [edi + 0x1c], ecx
mov dword [edi + 0x38], ebx
mov dword [edi + 0x30], ebx
mov dword [edi + 0x34], ebx
mov dword [esi + 0x588], edi
mov edx, dword [0x4c368c]
mov eax, dword [edx + 0x8c0]
lea ebp, [edx + 0x8b8]
mov dword [esp + 0x24], eax
cmp dword [ebp + 0x10], ebx
jne 0x412bc1
mov ecx, dword [ebp + 0x18]
push 0xc
lea edx, [ebp + 0x14]
push ecx
push edx
call fcn.00483ae9
mov ecx, dword [ebp + 0x18]
lea edx, [ecx + ecx*2]
dec ecx
cmp ecx, ebx
lea eax, [eax + edx*4 - 8]
jl 0x412bc1
inc ecx
mov edx, dword [ebp + 0x10]
mov dword [eax], edx
mov dword [ebp + 0x10], eax
sub eax, 0xc
dec ecx
jne 0x412bb3
mov eax, dword [ebp + 0x10]
mov edx, dword [esp + 0x24]
mov ecx, dword [eax]
mov dword [ebp + 0x10], ecx
mov dword [eax + 4], edx
mov dword [eax], ebx
mov ecx, dword [ebp + 0xc]
inc ecx
mov dword [ebp + 0xc], ecx
mov dword [eax + 8], ebx
mov dword [eax + 8], edi
mov ecx, dword [ebp + 8]
cmp ecx, ebx
je 0x412bea
mov dword [ecx], eax
jmp 0x412bed
mov dword [ebp + 4], eax
mov edi, dword [esp + 0x28]
mov dword [ebp + 8], eax
mov ebp, dword [esp + 0x128]
mov eax, dword [esp + 0x12c]
mov dword [edi], 1
mov dword [edi + 0x44], eax
mov ecx, dword [esi + 0x30]
mov dword [edi + 0x24], ecx
mov dword [edi + 0x20], ebx
mov edx, dword [esi + 0x34]
lea ecx, [edi + 0x14]
mov dword [edi + 0x28], edx
mov eax, dword [esi + 0x38]
mov dword [edi + 0x2c], eax
lea eax, [esi + 0x18]
push eax
call fcn.0048456c
lea eax, [esi + 0x14]
lea ecx, [edi + 0x10]
push eax
call fcn.0048456c
mov ecx, dword [esp + 0x12c]
mov dword [esi], 1
mov dword [esi + 0x50], ecx
jmp 0x412f96
xor esi, esi
mov ecx, 0x14d
xor eax, eax
lea edi, [esi + 0x54]
push 0x4ba804
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x18]
mov dword [esi + 0x588], ebx
mov dword [esi + 0x20], eax
mov dword [esi + 0x44], ebx
call fcn.00432ed0
push eax
call fcn.0040ab30
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esi + 0x24], eax
push str.userName
call fcn.00432ed0
lea ecx, [esp + 0x4c]
push eax
push ecx
call fcn.0040ac10
add esp, 8
lea ecx, [esi + 0x14]
push eax
mov byte [esp + 0x120], 0xf
call fcn.0048456c
lea ecx, [esp + 0x4c]
mov byte [esp + 0x11c], 5
call fcn.00484433
push str.headPic
lea ecx, [esp + 0x18]
call fcn.00432ed0
lea edx, [esp + 0x48]
push eax
push edx
call fcn.0040ac10
add esp, 8
lea ecx, [esi + 0x18]
push eax
mov byte [esp + 0x120], 0x10
call fcn.0048456c
lea ecx, [esp + 0x48]
mov byte [esp + 0x11c], 5
call fcn.00484433
push str.yellowlevel
lea ecx, [esp + 0x18]
call fcn.00432ed0
push eax
call fcn.0040ab30
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esi + 0x34], eax
push str.yellowstatus
call fcn.00432ed0
push eax
call fcn.0040ab30
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esi + 0x38], eax
push str.money
call fcn.00432ed0
push eax
call fcn.0040ab30
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esi + 0x30], eax
push 0x4ba7c8
call fcn.00432ed0
push eax
call fcn.0040ab30
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esi + 0x2c], eax
mov dword [esi + 0x28], ebx
push 0x4ba7c4
mov dword [esi + 0x3c], ebx
call fcn.00432ed0
push eax
call fcn.0040ab30
add esp, 4
cmp eax, ebx
je 0x412ef0
push 0x94
call fcn.00484998
add esp, 4
cmp eax, ebx
je 0x412de5
mov ecx, dword [0x4be818]
mov edi, eax
mov dword [eax + 0x10], ecx
mov edx, dword [0x4be818]
mov cl, byte [esp + 0x13]
mov dword [eax + 0x14], edx
mov dl, byte [esp + 0x13]
mov byte [eax + 0x48], cl
mov cl, byte [esp + 0x13]
mov dword [eax + 0x4c], ebx
mov dword [eax + 0x50], ebx
mov dword [eax + 0x54], ebx
mov byte [eax + 0x58], dl
mov dword [eax + 0x5c], ebx
mov dword [eax + 0x60], ebx
mov dword [eax + 0x64], ebx
mov byte [eax + 0x68], cl
mov dword [eax + 0x6c], ebx
mov dword [eax + 0x70], ebx
mov dword [eax + 0x74], ebx
jmp 0x412de7
xor edi, edi
mov edx, dword [esp + 0x12c]
mov dword [edi + 0x80], ebx
mov dword [edi + 0x88], ebx
mov dword [edi], 1
mov dword [edi + 0x40], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0x3c], ebx
mov dword [edi + 0x44], edx
mov dword [edi + 0x20], ebx
mov eax, dword [esi + 0x28]
mov dword [edi + 0x1c], eax
mov ecx, dword [esi + 0x30]
mov dword [edi + 0x24], ecx
mov dword [edi + 0x38], ebx
mov dword [edi + 0x30], ebx
mov dword [edi + 0x34], ebx
mov edx, dword [esi + 0x20]
mov dword [edi + 0x18], edx
mov eax, dword [esi + 0x34]
mov dword [edi + 0x28], eax
mov ecx, dword [esi + 0x38]
lea eax, [esi + 0x18]
mov dword [edi + 0x2c], ecx
push eax
lea ecx, [edi + 0x14]
call fcn.0048456c
lea eax, [esi + 0x14]
lea ecx, [edi + 0x10]
push eax
call fcn.0048456c
mov dword [esi + 0x588], edi
mov edx, dword [0x4c368c]
mov eax, dword [edx + 0x8c0]
lea ebp, [edx + 0x8b8]
mov dword [esp + 0x28], eax
cmp dword [ebp + 0x10], ebx
jne 0x412ea2
mov ecx, dword [ebp + 0x18]
push 0xc
lea edx, [ebp + 0x14]
push ecx
push edx
call fcn.00483ae9
mov ecx, dword [ebp + 0x18]
lea edx, [ecx + ecx*2]
dec ecx
cmp ecx, ebx
lea eax, [eax + edx*4 - 8]
jl 0x412ea2
inc ecx
mov edx, dword [ebp + 0x10]
mov dword [eax], edx
mov dword [ebp + 0x10], eax
sub eax, 0xc
dec ecx
jne 0x412e94
mov eax, dword [ebp + 0x10]
mov edx, dword [esp + 0x28]
mov ecx, dword [eax]
mov dword [ebp + 0x10], ecx
mov dword [eax + 4], edx
mov dword [eax], ebx
mov ecx, dword [ebp + 0xc]
inc ecx
mov dword [ebp + 0xc], ecx
mov dword [eax + 8], ebx
mov dword [eax + 8], edi
mov ecx, dword [ebp + 8]
cmp ecx, ebx
je 0x412ecb
mov dword [ecx], eax
jmp 0x412ece
mov dword [ebp + 4], eax
mov dword [ebp + 8], eax
mov eax, dword [esp + 0x30]
push edi
push 7
mov ecx, dword [eax + 0x2c]
push 0x467
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov ebp, dword [esp + 0x128]
jmp 0x412ef6
mov dword [esi + 0x588], ebx
mov edx, dword [esp + 0x12c]
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x48], ebx
mov dword [esi], 1
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x584], ebx
mov dword [esi + 0x50], edx
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
cmp eax, ebx
jne 0x412f55
mov eax, dword [ebp + 0x18]
push 0xc
lea ecx, [ebp + 0x14]
push eax
push ecx
call fcn.00483ae9
mov ecx, dword [ebp + 0x18]
lea edx, [ecx + ecx*2]
dec ecx
cmp ecx, ebx
lea eax, [eax + edx*4 - 8]
jl 0x412f55
inc ecx
mov edx, dword [ebp + 0x10]
mov dword [eax], edx
mov dword [ebp + 0x10], eax
sub eax, 0xc
dec ecx
jne 0x412f47
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov dword [ebp + 0x10], ecx
mov dword [eax + 4], edi
mov dword [eax], ebx
mov edi, dword [ebp + 0xc]
inc edi
mov dword [ebp + 0xc], edi
mov dword [eax + 8], ebx
mov dword [eax + 8], esi
mov ecx, dword [ebp + 8]
cmp ecx, ebx
je 0x412f7a
mov dword [ecx], eax
jmp 0x412f7d
mov dword [ebp + 4], eax
mov edx, dword [esp + 0x30]
mov dword [ebp + 8], eax
push esi
push 3
mov eax, dword [edx + 0x2c]
push 0x467
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x68]
inc eax
cmp eax, ecx
mov dword [esp + 0x2c], eax
jl 0x412923
push 0xffffffffffffffff
lea ecx, [esp + 0x128]
call fcn.004848b2
lea ecx, [esp + 0x34]
mov byte [esp + 0x11c], 4
call fcn.00484433
push 1
lea ecx, [esp + 0xf4]
mov byte [esp + 0x120], 0x13
call fcn.0041cfc0
mov eax, dword [esp + 0xd0]
cmp eax, ebx
je 0x413008
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x412fff
cmp al, 0xff
je 0x412fff
dec al
mov byte [ecx], al
jmp 0x413008
push ecx
call fcn.004849c1
add esp, 4
mov eax, dword [esp + 0xc8]
mov dword [esp + 0xd0], ebx
cmp eax, ebx
mov dword [esp + 0xd4], ebx
mov dword [esp + 0xd8], ebx
mov byte [esp + 0x11c], 0x11
je 0x413081
mov eax, dword [esp + 0xa8]
push ebx
mov ecx, eax
add eax, 0x20
mov dword [esp + 0xac], eax
call fcn.0041d570
mov eax, dword [esp + 0xc8]
dec eax
mov dword [esp + 0xc8], eax
je 0x41306c
mov ecx, dword [esp + 0xa8]
mov eax, dword [esp + 0xa4]
cmp ecx, eax
jne 0x413078
lea ecx, [esp + 0x9c]
call fcn.0041d320
cmp dword [esp + 0xc8], ebx
jne 0x413030
mov eax, dword [esp + 0x98]
mov byte [esp + 0x11c], 3
cmp eax, ebx
je 0x4130cc
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x98]
add ecx, 4
dec eax
mov dword [esp + 0x78], ecx
mov dword [esp + 0x98], eax
je 0x4130ba
mov eax, dword [esp + 0x74]
mov edx, ecx
cmp edx, eax
jne 0x4130c3
lea ecx, [esp + 0x6c]
call fcn.0041d320
cmp dword [esp + 0x98], ebx
jne 0x413094
lea ecx, [esp + 0x104]
mov byte [esp + 0x11c], 2
call fcn.00431f40
lea ecx, [esp + 0x14]
mov byte [esp + 0x11c], 1
call fcn.00431f40
lea ecx, [esp + 0x54]
mov byte [esp + 0x11c], bl
call fcn.00431f40
lea ecx, [esp + 0x124]
mov dword [esp + 0x11c], 0xffffffff
call fcn.00484433
mov eax, 1
mov ecx, dword [esp + 0x114]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x110
ret 0xc