Function at 0x4471a0
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x4989ae
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd4
mov eax, dword [0x4be818]
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov dword [esp + 0x10], eax
push 0
lea ecx, [esp + 0x20]
mov dword [esp + 0xf0], 0
call fcn.00431a20
push 0
lea ecx, [esp + 0x30]
mov byte [esp + 0xf0], 1
call fcn.00431a20
lea ecx, [esp + 0x4c]
mov byte [esp + 0xec], 2
call fcn.0042c2e0
mov edx, dword [ebp + 0x48]
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 0
push 8
push edx
push ecx
mov ecx, ebp
mov byte [esp + 0x100], 3
call fcn.0044ed10
lea eax, [esp + 0x18]
mov ecx, ebp
push eax
call fcn.00441b80
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xf0], 4
call fcn.0048456c
lea ecx, [esp + 0x14]
mov byte [esp + 0xec], 3
call fcn.00484433
push 0
lea ecx, [esp + 0x14]
call fcn.00484863
mov cl, byte [esp + 0x1b]
push 0
mov byte [esp + 0x40], cl
lea ecx, [esp + 0x40]
mov esi, eax
call fcn.0041cfc0
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [esp + 0x40]
push ebx
call fcn.0041d200
test al, al
je 0x4472b0
mov edi, dword [esp + 0x40]
mov ecx, ebx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x40]
mov dword [esp + 0x44], ebx
mov byte [eax + ebx], 0
lea ecx, [esp + 0x1c]
push 1
lea edx, [esp + 0x40]
push ecx
push edx
lea ecx, [esp + 0x58]
mov byte [esp + 0xf8], 5
call fcn.0042c370
and eax, 0xff
push 1
lea ecx, [esp + 0x40]
mov esi, eax
mov byte [esp + 0xf0], 3
call fcn.0041cfc0
or ebx, 0xffffffff
lea ecx, [esp + 0x10]
push ebx
call fcn.004848b2
xor edi, edi
cmp esi, edi
jne 0x447373
push 1
lea ecx, [esp + 0xd4]
mov byte [esp + 0xf0], 8
call fcn.0041cfc0
push 1
lea ecx, [esp + 0xb0]
mov byte [esp + 0xf0], 7
call fcn.0041cfc0
mov eax, dword [esp + 0xa8]
mov byte [esp + 0xec], 6
cmp eax, edi
je 0x44734b
lea ecx, [esp + 0x7c]
call fcn.0041d0a0
cmp dword [esp + 0xa8], edi
jne 0x447339
mov eax, dword [esp + 0x78]
mov byte [esp + 0xec], 2
cmp eax, edi
je 0x4473f5
lea ecx, [esp + 0x4c]
call fcn.0041d010
cmp dword [esp + 0x78], edi
jne 0x44735f
jmp 0x4473f5
lea ecx, [esp + 0x1c]
call fcn.004321c0
cmp eax, 6
je 0x44742e
push 1
lea ecx, [esp + 0xd4]
mov byte [esp + 0xf0], 0xb
call fcn.0041cfc0
push 1
lea ecx, [esp + 0xb0]
mov byte [esp + 0xf0], 0xa
call fcn.0041cfc0
mov eax, dword [esp + 0xa8]
mov byte [esp + 0xec], 9
cmp eax, edi
je 0x4473d6
lea ecx, [esp + 0x7c]
call fcn.0041d0a0
cmp dword [esp + 0xa8], edi
jne 0x4473c4
mov eax, dword [esp + 0x78]
mov byte [esp + 0xec], 2
cmp eax, edi
je 0x4473f5
lea ecx, [esp + 0x4c]
call fcn.0041d010
cmp dword [esp + 0x78], edi
jne 0x4473e6
lea ecx, [esp + 0x2c]
mov byte [esp + 0xec], 1
call fcn.00431f40
lea ecx, [esp + 0x1c]
mov byte [esp + 0xec], 0
call fcn.00431f40
lea ecx, [esp + 0x10]
mov dword [esp + 0xec], ebx
call fcn.00484433
xor eax, eax
jmp 0x447661
xor ecx, ecx
mov eax, dword [ebp + 0xd4]
cmp eax, edi
je 0x447452
mov edx, dword [ebp + 0xd8]
sub edx, eax
sar edx, 2
cmp ecx, edx
jae 0x447452
mov edx, dword [eax + ecx*4]
inc ecx
mov dword [edx + 0x18], edi
jmp 0x447430
lea ecx, [esp + 0x1c]
call fcn.00432cb0
test eax, eax
jbe 0x447533
mov bl, 0xc
push edi
lea ecx, [esp + 0x20]
call fcn.00432d60
push eax
lea ecx, [esp + 0x30]
call fcn.004320c0
push 0x4ba740
lea ecx, [esp + 0x30]
call fcn.00432ed0
push eax
call fcn.0040ab30
add esp, 4
cmp eax, 4
jne 0x44751c
push 0x4ba738
lea ecx, [esp + 0x30]
call fcn.00432ed0
push eax
lea eax, [esp + 0x18]
push eax
call fcn.0040ac10
add esp, 8
push eax
mov ecx, ebp
mov byte [esp + 0xf0], bl
call fcn.00447bf0
lea ecx, [esp + 0x14]
mov esi, eax
mov byte [esp + 0xec], 3
call fcn.00484433
test esi, esi
je 0x44751c
push str.amount
lea ecx, [esp + 0x30]
call fcn.00432ed0
push eax
call fcn.0040ab30
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x1c]
push 0x4babd0
push eax
call fcn.0046f2f7
add esp, 0xc
test eax, eax
jne 0x44751c
mov ecx, dword [0x4c368c]
mov eax, dword [esi + 0x18]
mov edx, dword [ecx + 0x714]
mov dword [edx + 0x1300], eax
lea ecx, [esp + 0x1c]
inc edi
call fcn.00432cb0
cmp edi, eax
jb 0x447465
xor edi, edi
or ebx, 0xffffffff
push 1
lea ecx, [esp + 0xd4]
mov byte [esp + 0xf0], 0xf
call fcn.0041cfc0
mov eax, dword [esp + 0xb0]
cmp eax, edi
je 0x447571
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x447568
cmp al, 0xff
je 0x447568
dec al
mov byte [ecx], al
jmp 0x447571
push ecx
call fcn.004849c1
add esp, 4
mov eax, dword [esp + 0xa8]
mov dword [esp + 0xb0], edi
cmp eax, edi
mov dword [esp + 0xb4], edi
mov dword [esp + 0xb8], edi
mov byte [esp + 0xec], 0xd
je 0x4475e7
mov eax, dword [esp + 0x88]
push edi
mov ecx, eax
add eax, 0x20
mov dword [esp + 0x8c], eax
call fcn.0041d570
mov eax, dword [esp + 0xa8]
dec eax
mov dword [esp + 0xa8], eax
je 0x4475d5
mov ecx, dword [esp + 0x88]
mov eax, dword [esp + 0x84]
cmp ecx, eax
jne 0x4475de
lea ecx, [esp + 0x7c]
call fcn.0041d320
cmp dword [esp + 0xa8], edi
jne 0x447599
mov eax, dword [esp + 0x78]
mov byte [esp + 0xec], 2
cmp eax, edi
je 0x44762a
mov esi, 4
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x78]
add ecx, esi
dec eax
mov dword [esp + 0x58], ecx
mov dword [esp + 0x78], eax
je 0x44761b
mov eax, dword [esp + 0x54]
mov edx, ecx
cmp edx, eax
jne 0x447624
lea ecx, [esp + 0x4c]
call fcn.0041d320
cmp dword [esp + 0x78], edi
jne 0x4475fc
lea ecx, [esp + 0x2c]
mov byte [esp + 0xec], 1
call fcn.00431f40
lea ecx, [esp + 0x1c]
mov byte [esp + 0xec], 0
call fcn.00431f40
lea ecx, [esp + 0x10]
mov dword [esp + 0xec], ebx
call fcn.00484433
mov eax, 1
mov ecx, dword [esp + 0xe4]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xe0
ret