Function at 0x490510
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4f152d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c0
push ebx
mov al, byte [esp + 0xb]
push ebp
push esi
push edi
mov dword [esp + 0x64], ecx
sub esp, 0x10
mov ebx, esp
mov dword [esp + 0x40], esp
push 0
mov ecx, ebx
mov byte [ebx], al
call fcn.00411e90
mov edi, 0x520168
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
mov ecx, ebx
push ebp
call fcn.00412290
test al, al
je 0x49058a
mov edi, dword [ebx + 4]
mov ecx, ebp
mov edx, ecx
mov esi, 0x520168
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
call fcn.00412270
push 0
lea ecx, [esp + 0x80]
call fcn.004cabb0
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0xd1]
mov byte [esp + 0xd0], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov al, byte [esp + 0x17]
push 0
lea ecx, [esp + 0x40]
mov dword [esp + 0x1dc], 0
mov byte [esp + 0x40], al
call fcn.00411e90
mov edi, 0x520168
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.00412290
test al, al
je 0x490615
mov edi, dword [esp + 0x40]
mov ecx, ebx
mov edx, ecx
mov esi, 0x520168
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x40]
call fcn.00412270
lea ecx, [esp + 0x10]
mov byte [esp + 0x1d8], 1
call fcn.004be970
push ecx
mov byte [esp + 0x1dc], 2
mov ecx, esp
mov dword [esp + 0x34], esp
push 6
push 0x5129e0
call fcn.004bea10
lea eax, [esp + 0x8c]
push eax
call fcn.004d0560
add esp, 8
mov ecx, dword [0x4f73d0]
mov byte [esp + 0x1d8], 3
push ecx
push 0
push eax
lea ecx, [esp + 0x48]
call fcn.00411c90
push 1
lea ecx, [esp + 0x8c]
mov byte [esp + 0x1dc], 2
call fcn.00411e90
xor ebx, ebx
mov ecx, 0x5201a4
push ebx
mov dword [esp + 0x34], ebx
call fcn.004bec90
and eax, 0xff
sub eax, 3
test eax, eax
jle 0x49075c
lea edx, [ebx + 4]
mov ecx, 0x5201a4
push edx
call fcn.004bec90
and eax, 0xff
push eax
lea eax, [esp + 0xb4]
push str._02X
push eax
call fcn.004df246
lea edi, [esp + 0xbc]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
mov edx, dword [esp + 0x44]
not ecx
dec ecx
mov esi, ecx
mov ecx, dword [0x4f73d0]
sub ecx, edx
cmp ecx, esi
ja 0x4906f4
call fcn.004deb1b
test esi, esi
jbe 0x49073b
mov edx, dword [esp + 0x44]
push 0
lea ecx, [esp + 0x40]
lea ebp, [esi + edx]
push ebp
call fcn.00412290
test al, al
je 0x49073b
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
push ebp
lea edi, [eax + ecx]
mov ecx, esi
mov edx, ecx
lea esi, [esp + 0xb4]
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.00412270
push 0
mov ecx, 0x5201a4
inc ebx
call fcn.004bec90
and eax, 0xff
sub eax, 3
cmp ebx, eax
jl 0x4906a3
mov dword [esp + 0x30], ebx
push 0
push 1
sub esp, 0x10
mov esi, esp
mov dword [esp + 0x98], esp
push ecx
mov ecx, esp
mov dword [esp + 0x84], esp
push 6
push 0x5129d8
call fcn.004bea10
push esi
call fcn.004d0560
sub esp, 8
lea eax, [esp + 0x64]
mov ecx, esp
mov dword [esp + 0x90], esp
push eax
mov byte [esp + 0x204], 4
call fcn.004118e0
mov ecx, 0x520200
mov byte [esp + 0x200], 2
call fcn.004cb6b0
push str.344630393135313035432056413031373031303931383134344630393135313035432056413031373031303931383134
lea ecx, [esp + 0xd4]
push 0x5100e0
push ecx
call fcn.004df246
mov dl, byte [esp + 0x23]
push ecx
mov ebp, esp
mov dword [esp + 0x78], esp
push 0
mov ecx, ebp
mov byte [ebp], dl
call fcn.00411e90
lea edi, [esp + 0xe0]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
mov ecx, ebp
push ebx
call fcn.00412290
test al, al
je 0x49082c
mov edi, dword [ebp + 4]
mov ecx, ebx
mov eax, ecx
lea esi, [esp + 0xe0]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 4]
mov dword [ebp + 8], ebx
add ebx, eax
mov byte [ebx], 0
sub esp, 0x10
lea edx, [esp + 0x37]
mov ecx, esp
mov dword [esp + 0xa0], esp
push edx
push 0x50f8ec
mov byte [esp + 0x200], 5
call fcn.00411a00
sub esp, 0x10
lea eax, [esp + 0x93]
mov ecx, esp
mov dword [esp + 0xb4], esp
push eax
push 0x5119ec
mov byte [esp + 0x210], 6
call fcn.00411a00
sub esp, 0x10
lea edx, [esp + 0x9b]
mov ecx, esp
mov dword [esp + 0xd8], esp
push edx
push 0x520168
mov byte [esp + 0x220], 7
call fcn.00411a00
sub esp, 0x10
mov byte [esp + 0x228], 8
mov esi, esp
mov dword [esp + 0xac], esp
push ecx
mov ecx, esp
mov dword [esp + 0xa8], esp
push 6
push 0x5129d8
call fcn.004bea10
push esi
call fcn.004d0560
sub esp, 8
mov byte [esp + 0x238], 9
mov esi, esp
mov dword [esp + 0xb4], esp
push ecx
mov ecx, esp
mov dword [esp + 0xb8], esp
push 6
push 0x5129d0
call fcn.004bea10
push esi
call fcn.004d0560
add esp, 8
lea eax, [esp + 0xfc]
mov ecx, 0x520200
mov byte [esp + 0x238], 2
push eax
call fcn.004cb970
mov edx, dword [0x4f73d0]
mov cx, word [eax]
push edx
add eax, 4
mov word [esp + 0x70], cx
push 0
push eax
lea ecx, [esp + 0x7c]
mov byte [esp + 0x1e4], 0xa
call fcn.00411c90
push 1
lea ecx, [esp + 0xa4]
mov byte [esp + 0x1dc], 2
call fcn.00411e90
lea ecx, [esp + 0x6c]
call fcn.004c4fe0
cmp ax, 2
je 0x490aad
lea ecx, [esp + 0x6c]
call fcn.004c4fe0
cmp ax, 1
jne 0x4907b8
lea eax, [esp + 0x88]
lea ecx, [esp + 0x6c]
push eax
call fcn.004cacf0
mov edi, dword [eax + 4]
test edi, edi
jne 0x490997
mov edi, 0x4f7480
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xd0]
mov eax, ecx
mov esi, edi
mov edi, edx
push 1
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x8c]
call fcn.00411e90
lea edi, [esp + 0xd0]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x30]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [edx + edx]
cmp ecx, eax
je 0x490a2e
push 0
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x60], esp
push 6
push 0x50f634
call fcn.004bea10
push ecx
mov byte [esp + 0x1e8], 0xb
mov ecx, esp
mov dword [esp + 0x6c], esp
push 6
push 0x5119d4
call fcn.004bea10
mov ecx, 0x520200
mov byte [esp + 0x1e8], 2
call fcn.004cb760
jmp 0x4907b8
mov ebp, dword [esp + 0x64]
push ecx
lea edx, [esp + 0xd4]
mov ecx, esp
mov dword [esp + 0x58], esp
push edx
push ecx
mov ecx, ebp
call fcn.004915d0
lea ecx, [esp + 0x14]
call fcn.004beca0
lea ecx, [esp + 0x10]
call fcn.004bee30
test ax, ax
jne 0x490aec
push 0
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x60], esp
push 6
push 0x50f634
call fcn.004bea10
push ecx
mov byte [esp + 0x1e8], 0xc
mov ecx, esp
mov dword [esp + 0x6c], esp
push 6
push 0x5119d4
call fcn.004bea10
mov ecx, 0x520200
mov byte [esp + 0x1e8], 2
call fcn.004cb760
jmp 0x4907b8
lea ecx, [esp + 0x10]
mov byte [esp + 0x1d8], 1
call fcn.004beab0
push 1
lea ecx, [esp + 0x40]
mov byte [esp + 0x1dc], 0
call fcn.00411e90
push 1
lea ecx, [esp + 0x74]
mov dword [esp + 0x1dc], 0xffffffff
call fcn.00411e90
jmp 0x4915a4
push 7
push 0x5129c8
lea ecx, [esp + 0x30]
call fcn.004bea10
push 7
push 0x5129c0
lea ecx, [esp + 0x34]
mov byte [esp + 0x1e0], 0xd
call fcn.004bea10
mov al, byte [esp + 0x5b]
xor ebx, ebx
mov byte [esp + 0x18], al
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
lea ecx, [esp + 0x38]
mov byte [esp + 0x1d8], 0xf
call fcn.004be970
push ebx
mov ecx, 0x5201a0
mov byte [esp + 0x1dc], 0x10
call fcn.004bec90
push eax
push ebx
lea ecx, [esp + 0x30]
call fcn.004bedb0
push 4
mov ecx, 0x5201a0
call fcn.004bec90
push eax
push 4
lea ecx, [esp + 0x30]
call fcn.004bedb0
push 5
mov ecx, 0x5201a0
call fcn.004bec90
push eax
push 5
lea ecx, [esp + 0x30]
call fcn.004bedb0
push 6
mov ecx, 0x5201a0
call fcn.004bec90
push eax
push 6
lea ecx, [esp + 0x30]
call fcn.004bedb0
push 7
mov ecx, 0x5201a0
call fcn.004bec90
push eax
push ebx
lea ecx, [esp + 0x34]
call fcn.004bedb0
push 8
mov ecx, 0x5201a0
call fcn.004bec90
push eax
push 1
lea ecx, [esp + 0x34]
call fcn.004bedb0
push 9
mov ecx, 0x5201a0
call fcn.004bec90
push eax
push 2
lea ecx, [esp + 0x34]
call fcn.004bedb0
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
push ecx
push esi
lea ecx, [esp + 0x20]
call fcn.00476d50
lea edx, [esp + 0x28]
mov dword [esp + 0x20], esi
push edx
push 1
push esi
lea ecx, [esp + 0x24]
call fcn.004126e0
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x2c]
push eax
push 1
push ecx
lea ecx, [esp + 0x24]
call fcn.004126e0
lea edx, [esp + 0x38]
lea eax, [esp + 0x18]
push edx
push eax
mov ecx, ebp
call fcn.004a4400
test ax, ax
jge 0x490d1d
lea ecx, [esp + 0x38]
mov byte [esp + 0x1d8], 0xf
call fcn.004beab0
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
cmp esi, edi
mov byte [esp + 0x1d8], 0xe
je 0x490c76
mov ecx, esi
call fcn.004beab0
add esi, 4
cmp esi, edi
jne 0x490c64
mov esi, dword [esp + 0x1c]
push esi
call fcn.004deb10
add esp, 4
lea ecx, [esp + 0x2c]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov byte [esp + 0x1d8], 0xd
call fcn.004beab0
lea ecx, [esp + 0x28]
mov byte [esp + 0x1d8], 2
call fcn.004beab0
lea ecx, [esp + 0x10]
mov byte [esp + 0x1d8], 1
call fcn.004beab0
mov ecx, dword [esp + 0x40]
cmp ecx, ebx
je 0x490ce2
mov al, byte [ecx - 1]
test al, al
je 0x490cd8
cmp al, 0xff
je 0x490cd8
dec al
mov byte [ecx - 1], al
jmp 0x490ce2
dec ecx
push ecx
call fcn.004deb10
add esp, 4
mov eax, dword [esp + 0x74]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
cmp eax, ebx
je 0x49146e
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x491465
cmp al, 0xff
je 0x491465
dec al
mov byte [ecx], al
or ax, 0xffff
jmp 0x4915a8
push 4
push 0x5129b8
lea ecx, [esp + 0x58]
call fcn.004bea10
push 7
push 0x5129b0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1e0], 0x11
call fcn.004bea10
push 7
push str.UUUUUUU
lea ecx, [esp + 0x54]
mov byte [esp + 0x1e0], 0x12
call fcn.004bea10
push ebx
mov ecx, 0x5201a4
mov byte [esp + 0x1dc], 0x13
call fcn.004bec90
cmp al, 8
mov byte [esp + 0x30], al
jae 0x490fdb
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x50]
push esi
push ebx
call fcn.004bedb0
and esi, 0xff
xor edi, edi
add esi, 0xfffffffd
cmp esi, ebx
jle 0x490db3
push edi
lea ecx, [esp + 0x14]
call fcn.004bec90
push eax
lea ecx, [esp + 0x54]
call fcn.004bee10
inc edi
cmp edi, esi
jl 0x490d9a
push 1
lea ecx, [esp + 0x3c]
push 0xff
lea edx, [esp + 0x58]
push ecx
push edx
mov ecx, ebp
call fcn.004a3e10
cmp ax, bx
jge 0x490eb1
lea ecx, [esp + 0x4c]
mov byte [esp + 0x1d8], 0x12
call fcn.004beab0
lea ecx, [esp + 0x34]
mov byte [esp + 0x1d8], 0x11
call fcn.004beab0
lea ecx, [esp + 0x50]
mov byte [esp + 0x1d8], 0x10
call fcn.004beab0
lea ecx, [esp + 0x38]
mov byte [esp + 0x1d8], 0xf
call fcn.004beab0
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
cmp esi, eax
mov byte [esp + 0x1d8], 0xe
mov edi, eax
je 0x490e40
mov ecx, esi
call fcn.004beab0
add esi, 4
cmp esi, edi
jne 0x490e2e
mov esi, dword [esp + 0x1c]
push esi
call fcn.004deb10
add esp, 4
lea ecx, [esp + 0x2c]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov byte [esp + 0x1d8], 0xd
call fcn.004beab0
lea ecx, [esp + 0x28]
mov byte [esp + 0x1d8], 2
call fcn.004beab0
lea ecx, [esp + 0x10]
mov byte [esp + 0x1d8], 1
call fcn.004beab0
mov ecx, dword [esp + 0x40]
cmp ecx, ebx
je 0x490ce2
mov al, byte [ecx - 1]
test al, al
je 0x490cd8
cmp al, 0xff
je 0x490cd8
dec al
mov byte [ecx - 1], al
jmp 0x490ce2
jne 0x49134a
xor ebx, ebx
push ebx
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x60], esp
push 6
push 0x50f634
call fcn.004bea10
push ecx
mov byte [esp + 0x1e8], 0x14
mov ecx, esp
mov dword [esp + 0x6c], esp
push 6
push 0x5129a0
call fcn.004bea10
mov ecx, 0x520200
mov byte [esp + 0x1e8], 0x13
call fcn.004cb760
lea ecx, [esp + 0x4c]
mov byte [esp + 0x1d8], 0x12
call fcn.004beab0
lea ecx, [esp + 0x34]
mov byte [esp + 0x1d8], 0x11
call fcn.004beab0
lea ecx, [esp + 0x50]
mov byte [esp + 0x1d8], 0x10
call fcn.004beab0
lea ecx, [esp + 0x38]
mov byte [esp + 0x1d8], 0xf
call fcn.004beab0
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
cmp eax, ecx
mov byte [esp + 0x1d8], 0xe
mov edi, ecx
mov esi, eax
je 0x490f6a
mov ecx, esi
call fcn.004beab0
add esi, 4
cmp esi, edi
jne 0x490f58
mov eax, dword [esp + 0x1c]
push eax
call fcn.004deb10
add esp, 4
lea ecx, [esp + 0x2c]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov byte [esp + 0x1d8], 0xd
call fcn.004beab0
lea ecx, [esp + 0x28]
mov byte [esp + 0x1d8], 2
call fcn.004beab0
lea ecx, [esp + 0x10]
mov byte [esp + 0x1d8], 1
call fcn.004beab0
mov ecx, dword [esp + 0x40]
cmp ecx, ebx
je 0x491313
mov al, byte [ecx - 1]
test al, al
je 0x491309
cmp al, 0xff
je 0x491309
dec al
mov byte [ecx - 1], al
jmp 0x491313
mov edi, dword [esp + 0x30]
lea ecx, [esp + 0x34]
push edi
push 0
call fcn.004bedb0
push 0
lea ecx, [esp + 0x14]
call fcn.004bec90
push eax
push 4
lea ecx, [esp + 0x3c]
call fcn.004bedb0
push 1
lea ecx, [esp + 0x14]
call fcn.004bec90
push eax
push 5
lea ecx, [esp + 0x3c]
call fcn.004bedb0
push 2
lea ecx, [esp + 0x14]
call fcn.004bec90
push eax
push 6
lea ecx, [esp + 0x3c]
call fcn.004bedb0
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
push eax
push esi
lea ecx, [esp + 0x20]
call fcn.00476d50
lea ecx, [esp + 0x34]
mov dword [esp + 0x20], esi
push ecx
push 1
push esi
lea ecx, [esp + 0x24]
call fcn.004126e0
and edi, 0xff
mov eax, 0x92492493
imul edi
add edx, edi
mov ebp, 1
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
mov ebx, edx
cmp ebx, ebp
jl 0x4910e1
mov dword [esp + 0x30], 7
xor esi, esi
mov ecx, dword [esp + 0x30]
add ecx, esi
cmp ecx, edi
jle 0x491094
push 0x55
jmp 0x4910ac
lea edx, [ebp*8]
lea ecx, [esp + 0x10]
sub edx, ebp
lea eax, [edx + esi - 4]
push eax
call fcn.004bec90
push eax
push esi
lea ecx, [esp + 0x54]
call fcn.004bedb0
inc esi
cmp esi, 7
jl 0x491086
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x4c]
push ecx
push 1
push edx
lea ecx, [esp + 0x24]
call fcn.004126e0
mov ecx, dword [esp + 0x30]
inc ebp
add ecx, 7
cmp ebp, ebx
mov dword [esp + 0x30], ecx
jle 0x491084
lea eax, [esp + 0x38]
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, dword [esp + 0x6c]
call fcn.004a4400
test ax, ax
jge 0x4911ee
lea ecx, [esp + 0x4c]
mov byte [esp + 0x1d8], 0x12
call fcn.004beab0
lea ecx, [esp + 0x34]
mov byte [esp + 0x1d8], 0x11
call fcn.004beab0
lea ecx, [esp + 0x50]
mov byte [esp + 0x1d8], 0x10
call fcn.004beab0
lea ecx, [esp + 0x38]
mov byte [esp + 0x1d8], 0xf
call fcn.004beab0
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
cmp esi, eax
mov byte [esp + 0x1d8], 0xe
mov edi, eax
je 0x491169
mov ecx, esi
call fcn.004beab0
add esi, 4
cmp esi, edi
jne 0x491157
mov esi, dword [esp + 0x1c]
push esi
call fcn.004deb10
xor esi, esi
add esp, 4
lea ecx, [esp + 0x2c]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov byte [esp + 0x1d8], 0xd
call fcn.004beab0
lea ecx, [esp + 0x28]
mov byte [esp + 0x1d8], 2
call fcn.004beab0
lea ecx, [esp + 0x10]
mov byte [esp + 0x1d8], 1
call fcn.004beab0
mov ecx, dword [esp + 0x40]
cmp ecx, esi
je 0x4911d7
mov al, byte [ecx - 1]
test al, al
je 0x4911cd
cmp al, 0xff
je 0x4911cd
dec al
mov byte [ecx - 1], al
jmp 0x4911d7
dec ecx
push ecx
call fcn.004deb10
add esp, 4
mov eax, dword [esp + 0x74]
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
cmp eax, esi
jmp 0x490cf4
jne 0x49134a
xor ebx, ebx
push ebx
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x60], esp
push 6
push 0x50f634
call fcn.004bea10
push ecx
mov byte [esp + 0x1e8], 0x15
mov ecx, esp
mov dword [esp + 0x6c], esp
push 6
push 0x5129a0
call fcn.004bea10
mov ecx, 0x520200
mov byte [esp + 0x1e8], 0x13
call fcn.004cb760
lea ecx, [esp + 0x4c]
mov byte [esp + 0x1d8], 0x12
call fcn.004beab0
lea ecx, [esp + 0x34]
mov byte [esp + 0x1d8], 0x11
call fcn.004beab0
lea ecx, [esp + 0x50]
mov byte [esp + 0x1d8], 0x10
call fcn.004beab0
lea ecx, [esp + 0x38]
mov byte [esp + 0x1d8], 0xf
call fcn.004beab0
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
cmp eax, ecx
mov byte [esp + 0x1d8], 0xe
mov edi, ecx
mov esi, eax
je 0x4912a7
mov ecx, esi
call fcn.004beab0
add esi, 4
cmp esi, edi
jne 0x491295
mov eax, dword [esp + 0x1c]
push eax
call fcn.004deb10
add esp, 4
lea ecx, [esp + 0x2c]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov byte [esp + 0x1d8], 0xd
call fcn.004beab0
lea ecx, [esp + 0x28]
mov byte [esp + 0x1d8], 2
call fcn.004beab0
lea ecx, [esp + 0x10]
mov byte [esp + 0x1d8], 1
call fcn.004beab0
mov ecx, dword [esp + 0x40]
cmp ecx, ebx
je 0x491313
mov al, byte [ecx - 1]
test al, al
je 0x491309
cmp al, 0xff
je 0x491309
dec al
mov byte [ecx - 1], al
jmp 0x491313
dec ecx
push ecx
call fcn.004deb10
add esp, 4
mov eax, dword [esp + 0x74]
mov dword [esp + 0x40], ebx
cmp eax, ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
je 0x4915a4
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x49159b
cmp al, 0xff
je 0x49159b
dec al
mov byte [ecx], al
jmp 0x4915a4
mov ecx, dword [esp + 0x64]
call fcn.0048dcd0
test ax, ax
jge 0x491477
lea ecx, [esp + 0x4c]
mov byte [esp + 0x1d8], 0x12
call fcn.004beab0
lea ecx, [esp + 0x34]
mov byte [esp + 0x1d8], 0x11
call fcn.004beab0
lea ecx, [esp + 0x50]
mov byte [esp + 0x1d8], 0x10
call fcn.004beab0
lea ecx, [esp + 0x38]
mov byte [esp + 0x1d8], 0xf
call fcn.004beab0
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
cmp esi, eax
mov byte [esp + 0x1d8], 0xe
mov edi, eax
je 0x4913c8
mov ecx, esi
call fcn.004beab0
add esi, 4
cmp esi, edi
jne 0x4913b6
mov esi, dword [esp + 0x1c]
push esi
call fcn.004deb10
xor esi, esi
add esp, 4
lea ecx, [esp + 0x2c]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov byte [esp + 0x1d8], 0xd
call fcn.004beab0
lea ecx, [esp + 0x28]
mov byte [esp + 0x1d8], 2
call fcn.004beab0
lea ecx, [esp + 0x10]
mov byte [esp + 0x1d8], 1
call fcn.004beab0
mov ecx, dword [esp + 0x40]
cmp ecx, esi
je 0x491436
mov al, byte [ecx - 1]
test al, al
je 0x49142c
cmp al, 0xff
je 0x49142c
dec al
mov byte [ecx - 1], al
jmp 0x491436
dec ecx
push ecx
call fcn.004deb10
add esp, 4
mov eax, dword [esp + 0x74]
mov dword [esp + 0x40], esi
cmp eax, esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
je 0x49146e
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x491465
cmp al, 0xff
je 0x491465
dec al
mov byte [ecx], al
or ax, 0xffff
jmp 0x4915a8
push ecx
call fcn.004deb10
add esp, 4
or ax, 0xffff
jmp 0x4915a8
xor ebx, ebx
push ebx
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x60], esp
push 6
push 0x50f634
call fcn.004bea10
push ecx
mov byte [esp + 0x1e8], 0x16
mov ecx, esp
mov dword [esp + 0x6c], esp
push 6
push 0x512998
call fcn.004bea10
mov ecx, 0x520200
mov byte [esp + 0x1e8], 0x13
call fcn.004cb760
lea ecx, [esp + 0x4c]
mov byte [esp + 0x1d8], 0x12
call fcn.004beab0
lea ecx, [esp + 0x34]
mov byte [esp + 0x1d8], 0x11
call fcn.004beab0
lea ecx, [esp + 0x50]
mov byte [esp + 0x1d8], 0x10
call fcn.004beab0
lea ecx, [esp + 0x38]
mov byte [esp + 0x1d8], 0xf
call fcn.004beab0
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
cmp eax, ecx
mov byte [esp + 0x1d8], 0xe
mov edi, ecx
mov esi, eax
je 0x49152a
mov ecx, esi
call fcn.004beab0
add esi, 4
cmp esi, edi
jne 0x491518
mov eax, dword [esp + 0x1c]
push eax
call fcn.004deb10
add esp, 4
lea ecx, [esp + 0x2c]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov byte [esp + 0x1d8], 0xd
call fcn.004beab0
lea ecx, [esp + 0x28]
mov byte [esp + 0x1d8], 2
call fcn.004beab0
lea ecx, [esp + 0x10]
mov byte [esp + 0x1d8], 1
call fcn.004beab0
mov ecx, dword [esp + 0x40]
cmp ecx, ebx
je 0x491313
mov al, byte [ecx - 1]
test al, al
je 0x491309
cmp al, 0xff
je 0x491309
dec al
mov byte [ecx - 1], al
jmp 0x491313
push ecx
call fcn.004deb10
add esp, 4
mov ax, 1
mov ecx, dword [esp + 0x1d0]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x1cc
ret