Function at 0x470580
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x5289d4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x9c
push ebx
push ebp
push esi
push edi
mov eax, 0x531158
or esi, 0xffffffff
xor edi, edi
mov dword [esp + 0x60], eax
mov word [esp + 0x64], si
mov word [esp + 0x66], di
mov dword [esp + 0xb4], edi
mov dword [esp + 0x58], eax
mov word [esp + 0x5c], si
mov word [esp + 0x5e], di
lea ecx, [esp + 0x38]
mov byte [esp + 0xb4], 1
call fcn.00498890
push 6
push 0x54ae78
lea ecx, [esp + 0x54]
mov byte [esp + 0xbc], 2
call fcn.0048a680
push 9
push 0x54ae6c
lea ecx, [esp + 0x2c]
mov byte [esp + 0xbc], 3
call fcn.0048a680
push 5
push 0x54936c
lea ecx, [esp + 0x30]
mov byte [esp + 0xbc], 4
call fcn.0048a680
push 7
push 0x54cf98
lea ecx, [esp + 0x34]
mov byte [esp + 0xbc], 5
call fcn.0048a680
push 7
push 0x54cf90
lea ecx, [esp + 0x3c]
mov byte [esp + 0xbc], 6
call fcn.0048a680
push 8
push 0x54cf84
lea ecx, [esp + 0x1c]
mov byte [esp + 0xbc], 7
call fcn.0048a680
lea ecx, [esp + 0x1c]
mov byte [esp + 0xb4], 8
call fcn.0048a5e0
lea ecx, [esp + 0x54]
mov byte [esp + 0xb4], 9
call fcn.0048a5e0
lea ecx, [esp + 0x88]
mov byte [esp + 0xb4], 0xa
call fcn.004974f0
mov al, byte [esp + 0x23]
sub esp, 0x10
mov ebp, esp
mov bl, 0xb
mov byte [esp + 0xc4], bl
mov dword [esp + 0x8c], esp
mov byte [ebp], al
mov dword [ebp + 4], edi
mov dword [ebp + 8], edi
mov dword [ebp + 0xc], edi
mov edi, str.zzzz
mov ecx, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
mov ecx, ebp
mov dword [esp + 0x40], edi
call fcn.00408340
cmp eax, edi
jae 0x4706ec
call fcn.00514140
mov ecx, dword [ebp + 4]
test ecx, ecx
je 0x470711
mov al, byte [ecx - 1]
test al, al
je 0x470711
cmp al, 0xff
je 0x470711
test edi, edi
jne 0x470735
dec al
push edi
mov byte [ecx - 1], al
mov ecx, ebp
call fcn.00405cc0
jmp 0x470761
test edi, edi
jne 0x470720
push 1
mov ecx, ebp
call fcn.00405cc0
jmp 0x470761
mov eax, dword [ebp + 0xc]
cmp eax, 0x1f
ja 0x47072c
cmp eax, edi
jae 0x47073d
push 1
mov ecx, ebp
call fcn.00405cc0
push edi
mov ecx, ebp
call fcn.00405fa0
mov eax, dword [esp + 0x40]
mov edi, dword [ebp + 4]
mov ecx, eax
mov esi, str.zzzz
mov edx, ecx
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebp
call fcn.00408200
sub esp, 0x10
lea eax, [esp + 0x43]
mov ecx, esp
mov dword [esp + 0x50], esp
push eax
push str.0000
mov byte [esp + 0xdc], 0xc
call fcn.00407a70
sub esp, 0x10
lea edx, [esp + 0x83]
mov ecx, esp
mov dword [esp + 0xb4], esp
push edx
push 0x54a7cc
mov byte [esp + 0xec], 0xd
call fcn.00407a70
sub esp, 0x10
lea eax, [esp + 0x92]
mov ecx, esp
mov dword [esp + 0xc0], esp
push eax
push 0x55802c
mov byte [esp + 0xfc], 0xe
call fcn.00407a70
push ecx
lea edx, [esp + 0x90]
mov ecx, esp
mov dword [esp + 0x5c], esp
push edx
mov byte [esp + 0xfc], 0xf
call fcn.0048a5f0
push ecx
mov byte [esp + 0xfc], 0x10
mov ecx, esp
mov dword [esp + 0x58], esp
push 6
push 0x54ae5c
call fcn.0048a680
lea eax, [esp + 0xb0]
mov ecx, 0x55b3d0
push eax
mov byte [esp + 0x100], bl
call fcn.00499be0
mov cx, word [eax]
mov esi, dword [0x531160]
lea edi, [eax + 4]
mov word [esp + 0x38], cx
mov byte [esp + 0xb4], 0x11
mov eax, dword [edi + 8]
mov ebp, eax
cmp esi, ebp
jae 0x470841
mov ebp, esi
lea edx, [esp + 0x3c]
cmp edx, edi
jne 0x4708b1
cmp dword [esp + 0x44], ebp
jae 0x470854
call fcn.00514440
lea ecx, [esp + 0x3c]
call fcn.00408350
mov eax, dword [esp + 0x44]
sub eax, ebp
cmp eax, esi
jae 0x470869
mov esi, eax
test esi, esi
jbe 0x4708a3
mov ecx, dword [esp + 0x40]
sub eax, esi
add ecx, ebp
push eax
lea edx, [esi + ecx]
push edx
push ecx
call fcn.00514bd0
mov edi, dword [esp + 0x50]
add esp, 0xc
sub edi, esi
lea ecx, [esp + 0x3c]
push 0
push edi
call fcn.00408220
test al, al
je 0x4708a3
push edi
lea ecx, [esp + 0x40]
call fcn.00408200
lea ecx, [esp + 0x3c]
call fcn.00408350
jmp 0x47093a
test ebp, ebp
jbe 0x4708fe
cmp ebp, eax
jne 0x4708fe
mov eax, dword [edi + 4]
test eax, eax
jne 0x4708c5
mov eax, 0x53115c
cmp byte [eax - 1], 0xfe
jae 0x4708fe
push 1
lea ecx, [esp + 0x40]
call fcn.00405cc0
mov eax, dword [edi + 4]
test eax, eax
jne 0x4708e2
mov eax, 0x53115c
mov dword [esp + 0x40], eax
mov ecx, dword [edi + 8]
mov dword [esp + 0x44], ecx
mov edi, dword [edi + 0xc]
mov dword [esp + 0x48], edi
mov cl, byte [eax - 1]
inc cl
mov byte [eax - 1], cl
jmp 0x47093a
push 1
push ebp
lea ecx, [esp + 0x44]
call fcn.00408220
test al, al
je 0x47093a
mov edi, dword [edi + 4]
mov esi, 0x53115c
test edi, edi
je 0x47091c
mov esi, edi
mov edi, dword [esp + 0x40]
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 + 0x40]
call fcn.00408200
mov eax, dword [esp + 0x70]
mov byte [esp + 0xb4], bl
test eax, eax
je 0x470966
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x47095d
cmp al, 0xff
je 0x47095d
dec al
mov byte [ecx], al
jmp 0x470966
push ecx
call fcn.00514120
add esp, 4
lea eax, [esp + 0x68]
lea ecx, [esp + 0x38]
push eax
call fcn.00498ae0
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x470999
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x470990
cmp al, 0xff
je 0x470990
dec al
mov byte [ecx], al
jmp 0x470999
push ecx
call fcn.00514120
add esp, 4
lea ecx, [esp + 0x68]
push ecx
lea ecx, [esp + 0x3c]
call fcn.00498ae0
mov eax, dword [eax + 4]
test eax, eax
jne 0x4709b3
mov eax, 0x53115c
push eax
call fcn.00470510
mov esi, eax
mov eax, dword [esp + 0x70]
add esp, 4
test eax, eax
je 0x4709e3
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4709da
cmp al, 0xff
je 0x4709da
dec al
mov byte [ecx], al
jmp 0x4709e3
push ecx
call fcn.00514120
add esp, 4
lea ecx, [esp + 0x38]
call fcn.00493130
cmp ax, 2
jne 0x470ac5
lea ecx, [esp + 0x88]
mov byte [esp + 0xb4], 0xa
call fcn.004975f0
lea ecx, [esp + 0x54]
mov byte [esp + 0xb4], 9
call fcn.0048a720
lea ecx, [esp + 0x1c]
mov byte [esp + 0xb4], 8
call fcn.0048a720
lea ecx, [esp + 0x14]
mov byte [esp + 0xb4], 7
call fcn.0048a720
lea ecx, [esp + 0x34]
mov byte [esp + 0xb4], 6
call fcn.0048a720
lea ecx, [esp + 0x2c]
mov byte [esp + 0xb4], 5
call fcn.0048a720
lea ecx, [esp + 0x28]
mov byte [esp + 0xb4], 4
call fcn.0048a720
lea ecx, [esp + 0x24]
mov byte [esp + 0xb4], 3
call fcn.0048a720
lea ecx, [esp + 0x4c]
mov byte [esp + 0xb4], 2
call fcn.0048a720
mov eax, dword [esp + 0x40]
test eax, eax
je 0x470abd
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x470ab4
cmp al, 0xff
je 0x470ab4
dec al
mov byte [ecx], al
xor ax, ax
jmp 0x471382
push ecx
call fcn.00514120
add esp, 4
xor ax, ax
jmp 0x471382
mov edx, esi
lea ecx, [esp + 0x24]
sar edx, 8
mov byte [esp + 0x30], dl
mov eax, dword [esp + 0x30]
push eax
push 6
call fcn.0048a9f0
push esi
push 7
lea ecx, [esp + 0x2c]
call fcn.0048a9f0
lea ecx, [esp + 0x24]
push ecx
call fcn.00422750
add esp, 4
lea edx, [esp + 0x1c]
lea eax, [esp + 0x24]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
call fcn.0048a5f0
call fcn.0046e890
add esp, 8
test ax, ax
jle 0x47127a
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push 6
push 0x54cf0c
call fcn.0048a680
mov ecx, dword [0x55b3d0]
call fcn.0049aa70
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push 6
push 0x54cf7c
call fcn.0048a680
mov ecx, dword [0x55b3d0]
call fcn.0049acb0
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push 6
push 0x54cf74
call fcn.0048a680
mov ecx, dword [0x55b3d0]
call fcn.0049acb0
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push 6
push 0x54cf6c
call fcn.0048a680
mov ecx, dword [0x55b3d0]
call fcn.0049acb0
lea ecx, [esp + 0x60]
push ecx
mov ecx, dword [0x55b3d0]
call fcn.0049adf0
test ax, ax
jl 0x4712bd
movsx eax, word [esp + 0x64]
sub eax, 0
je 0x471182
dec eax
je 0x4710a1
dec eax
jne 0x470b1e
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push 6
push 0x54cf6c
call fcn.0048a680
mov ecx, dword [0x55b3d0]
call fcn.0049aa70
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push 6
push 0x54cf64
call fcn.0048a680
mov ecx, dword [0x55b3d0]
call fcn.0049acb0
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push 6
push 0x54cf5c
call fcn.0048a680
mov ecx, dword [0x55b3d0]
call fcn.0049acb0
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push 6
push 0x54cf54
call fcn.0048a680
mov ecx, dword [0x55b3d0]
call fcn.0049acb0
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push 6
push 0x54cf4c
call fcn.0048a680
mov ecx, dword [0x55b3d0]
call fcn.0049acb0
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push 6
push 0x54cf44
call fcn.0048a680
mov ecx, dword [0x55b3d0]
call fcn.0049acb0
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push 6
push 0x54cf3c
call fcn.0048a680
mov ecx, dword [0x55b3d0]
call fcn.0049acb0
mov ecx, dword [0x55b3d0]
lea edx, [esp + 0x58]
push edx
call fcn.0049adf0
test ax, ax
jl 0x470b1e
movsx eax, word [esp + 0x5c]
cmp eax, 5
ja case.default.0x470cc4
jmp dword [eax*4 + 0x47139c]
push 0
push 4
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 6
push 0x54937c
call fcn.0048a680
push ecx
mov byte [esp + 0xc4], 0x18
mov ecx, esp
mov dword [esp + 0x28], esp
push 6
push 0x54cf34
call fcn.0048a680
mov ecx, 0x55b3d0
mov byte [esp + 0xc4], bl
call fcn.00499670
cmp ax, 3
jne case.default.0x470cc4
push 0
push 6
lea ecx, [esp + 0x1c]
call fcn.0048a9f0
lea eax, [esp + 0x14]
push eax
call fcn.00422750
add esp, 4
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x14]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.0048a5f0
call fcn.0046e890
add esp, 8
test ax, ax
push 0
push 1
push ecx
mov ecx, esp
jne 0x470d80
mov dword [esp + 0x1c], esp
push 6
push 0x54937c
call fcn.0048a680
push ecx
mov byte [esp + 0xc4], 0x19
mov ecx, esp
mov dword [esp + 0x28], esp
jmp 0x471057
mov dword [esp + 0x1c], esp
push 6
push 0x54937c
call fcn.0048a680
push ecx
mov byte [esp + 0xc4], 0x1a
mov ecx, esp
mov dword [esp + 0x28], esp
push 6
push 0x54cf2c
jmp 0x47105e
push 1
push 6
lea ecx, [esp + 0x1c]
call fcn.0048a9f0
lea eax, [esp + 0x14]
push eax
call fcn.00422750
add esp, 4
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x14]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.0048a5f0
call fcn.0046e890
add esp, 8
test ax, ax
push 0
push 1
push ecx
mov ecx, esp
jne 0x470e13
mov dword [esp + 0x1c], esp
push 6
push 0x54937c
call fcn.0048a680
push ecx
mov byte [esp + 0xc4], 0x1b
mov ecx, esp
mov dword [esp + 0x28], esp
jmp 0x471057
mov dword [esp + 0x1c], esp
push 6
push 0x54937c
call fcn.0048a680
push ecx
mov byte [esp + 0xc4], 0x1c
mov ecx, esp
mov dword [esp + 0x28], esp
push 6
push 0x54cf2c
jmp 0x47105e
push 2
push 6
lea ecx, [esp + 0x1c]
call fcn.0048a9f0
lea eax, [esp + 0x14]
push eax
call fcn.00422750
add esp, 4
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x14]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.0048a5f0
call fcn.0046e890
add esp, 8
test ax, ax
push 0
push 1
push ecx
mov ecx, esp
jne 0x470ea6
mov dword [esp + 0x1c], esp
push 6
push 0x54937c
call fcn.0048a680
push ecx
mov byte [esp + 0xc4], 0x1d
mov ecx, esp
mov dword [esp + 0x28], esp
jmp 0x471057
mov dword [esp + 0x1c], esp
push 6
push 0x54937c
call fcn.0048a680
push ecx
mov byte [esp + 0xc4], 0x1e
mov ecx, esp
mov dword [esp + 0x28], esp
push 6
push 0x54cf2c
jmp 0x47105e
push 3
push 6
lea ecx, [esp + 0x1c]
call fcn.0048a9f0
lea eax, [esp + 0x14]
push eax
call fcn.00422750
add esp, 4
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x14]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.0048a5f0
call fcn.0046e890
add esp, 8
test ax, ax
push 0
push 1
push ecx
mov ecx, esp
jne 0x470f39
mov dword [esp + 0x1c], esp
push 6
push 0x54937c
call fcn.0048a680
push ecx
mov byte [esp + 0xc4], 0x1f
mov ecx, esp
mov dword [esp + 0x28], esp
jmp 0x471057
mov dword [esp + 0x1c], esp
push 6
push 0x54937c
call fcn.0048a680
push ecx
mov byte [esp + 0xc4], 0x20
mov ecx, esp
mov dword [esp + 0x28], esp
push 6
push 0x54cf2c
jmp 0x47105e
push 4
push 6
lea ecx, [esp + 0x1c]
call fcn.0048a9f0
lea eax, [esp + 0x14]
push eax
call fcn.00422750
add esp, 4
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x14]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.0048a5f0
call fcn.0046e890
add esp, 8
test ax, ax
push 0
push 1
push ecx
mov ecx, esp
jne 0x470fcc
mov dword [esp + 0x1c], esp
push 6
push 0x54937c
call fcn.0048a680
push ecx
mov byte [esp + 0xc4], 0x21
mov ecx, esp
mov dword [esp + 0x28], esp
jmp 0x471057
mov dword [esp + 0x1c], esp
push 6
push 0x54937c
call fcn.0048a680
push ecx
mov byte [esp + 0xc4], 0x22
mov ecx, esp
mov dword [esp + 0x28], esp
push 6
push 0x54cf2c
jmp 0x47105e
push 5
push 6
lea ecx, [esp + 0x1c]
call fcn.0048a9f0
lea eax, [esp + 0x14]
push eax
call fcn.00422750
add esp, 4
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x14]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.0048a5f0
call fcn.0046e890
add esp, 8
test ax, ax
push 0
push 1
push ecx
mov ecx, esp
jne 0x471079
mov dword [esp + 0x1c], esp
push 6
push 0x54937c
call fcn.0048a680
push ecx
mov byte [esp + 0xc4], 0x23
mov ecx, esp
mov dword [esp + 0x28], esp
push 6
push 0x54cf24
call fcn.0048a680
mov ecx, 0x55b3d0
mov byte [esp + 0xc4], bl
call fcn.00499670
jmp case.default.0x470cc4
mov dword [esp + 0x1c], esp
push 6
push 0x54937c
call fcn.0048a680
push ecx
mov byte [esp + 0xc4], 0x24
mov ecx, esp
mov dword [esp + 0x28], esp
push 6
push 0x54cf2c
jmp 0x47105e
lea eax, [esp + 0x34]
push eax
call fcn.00422750
add esp, 4
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x34]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.0048a5f0
call fcn.0046e890
add esp, 8
test ax, ax
jne 0x4710fc
push 0
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 6
push 0x54937c
call fcn.0048a680
push ecx
mov byte [esp + 0xc4], 0x15
mov ecx, esp
mov dword [esp + 0x28], esp
jmp 0x471230
lea eax, [esp + 0x28]
push eax
call fcn.00422750
add esp, 4
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x28]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.0048a5f0
call fcn.0046e890
add esp, 8
test ax, ax
push 0
push 1
push ecx
mov ecx, esp
jne 0x471157
mov dword [esp + 0x1c], esp
push 6
push 0x54937c
call fcn.0048a680
push ecx
mov byte [esp + 0xc4], 0x16
mov ecx, esp
mov dword [esp + 0x28], esp
jmp 0x471230
mov dword [esp + 0x1c], esp
push 6
push 0x54937c
call fcn.0048a680
push ecx
mov byte [esp + 0xc4], 0x17
mov ecx, esp
mov dword [esp + 0x28], esp
push 6
push 0x54cf2c
jmp 0x471237
lea eax, [esp + 0x2c]
push eax
call fcn.00422750
add esp, 4
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x2c]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.0048a5f0
call fcn.0046e890
add esp, 8
test ax, ax
jne 0x4711da
push 0
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 6
push 0x54937c
call fcn.0048a680
push ecx
mov byte [esp + 0xc4], 0x12
mov ecx, esp
mov dword [esp + 0x28], esp
jmp 0x471230
lea eax, [esp + 0x28]
push eax
call fcn.00422750
add esp, 4
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x28]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.0048a5f0
call fcn.0046e890
add esp, 8
test ax, ax
push 0
push 1
push ecx
mov ecx, esp
jne 0x471252
mov dword [esp + 0x1c], esp
push 6
push 0x54937c
call fcn.0048a680
push ecx
mov byte [esp + 0xc4], 0x13
mov ecx, esp
mov dword [esp + 0x28], esp
push 6
push 0x54cf24
call fcn.0048a680
mov ecx, 0x55b3d0
mov byte [esp + 0xc4], bl
call fcn.00499670
jmp 0x470b1e
mov dword [esp + 0x1c], esp
push 6
push 0x54937c
call fcn.0048a680
push ecx
mov byte [esp + 0xc4], 0x14
mov ecx, esp
mov dword [esp + 0x28], esp
push 6
push 0x54cf2c
jmp 0x471237
push 0
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 6
push 0x54937c
call fcn.0048a680
push ecx
mov byte [esp + 0xc4], 0x25
mov ecx, esp
mov dword [esp + 0x28], esp
push 6
push 0x54ae44
call fcn.0048a680
mov ecx, 0x55b3d0
mov byte [esp + 0xc4], bl
call fcn.00499670
lea ecx, [esp + 0x88]
mov byte [esp + 0xb4], 0xa
call fcn.004975f0
lea ecx, [esp + 0x54]
mov byte [esp + 0xb4], 9
call fcn.0048a720
lea ecx, [esp + 0x1c]
mov byte [esp + 0xb4], 8
call fcn.0048a720
lea ecx, [esp + 0x14]
mov byte [esp + 0xb4], 7
call fcn.0048a720
lea ecx, [esp + 0x34]
mov byte [esp + 0xb4], 6
call fcn.0048a720
lea ecx, [esp + 0x2c]
mov byte [esp + 0xb4], 5
call fcn.0048a720
lea ecx, [esp + 0x28]
mov byte [esp + 0xb4], 4
call fcn.0048a720
lea ecx, [esp + 0x24]
mov byte [esp + 0xb4], 3
call fcn.0048a720
lea ecx, [esp + 0x4c]
mov byte [esp + 0xb4], 2
call fcn.0048a720
mov eax, dword [esp + 0x40]
test eax, eax
je 0x47137e
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x471375
cmp al, 0xff
je 0x471375
dec al
mov byte [ecx], al
jmp 0x47137e
push ecx
call fcn.00514120
add esp, 4
mov ax, 1
mov ecx, dword [esp + 0xac]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xa8
ret