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

Disassembly:
push 0xffffffffffffffff
push 0x4f14fd
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.00414090
mov edi, 0x520010
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.004144a0
test al, al
je 0x49065a
mov edi, dword [ebx + 4]
mov ecx, ebp
mov edx, ecx
mov esi, 0x520010
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.00414480
push 0
lea ecx, [esp + 0x80]
call fcn.004ca360
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.00414090
mov edi, 0x520010
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.004144a0
test al, al
je 0x4906e5
mov edi, dword [esp + 0x40]
mov ecx, ebx
mov edx, ecx
mov esi, 0x520010
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.00414480
lea ecx, [esp + 0x10]
mov byte [esp + 0x1d8], 1
call fcn.004be1a0
push ecx
mov byte [esp + 0x1dc], 2
mov ecx, esp
mov dword [esp + 0x34], esp
push 6
push 0x512884
call fcn.004be240
lea eax, [esp + 0x8c]
push eax
call fcn.004cfca0
add esp, 8
mov ecx, dword [0x4f73d0]
mov byte [esp + 0x1d8], 3
push ecx
push 0
push eax
lea ecx, [esp + 0x48]
call fcn.00413e90
push 1
lea ecx, [esp + 0x8c]
mov byte [esp + 0x1dc], 2
call fcn.00414090
xor ebx, ebx
mov ecx, 0x52004c
push ebx
mov dword [esp + 0x34], ebx
call fcn.004be4c0
and eax, 0xff
sub eax, 3
test eax, eax
jle 0x49082c
lea edx, [ebx + 4]
mov ecx, 0x52004c
push edx
call fcn.004be4c0
and eax, 0xff
push eax
lea eax, [esp + 0xb4]
push str._02X
push eax
call fcn.004de8d6
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 0x4907c4
call fcn.004de1ab
test esi, esi
jbe 0x49080b
mov edx, dword [esp + 0x44]
push 0
lea ecx, [esp + 0x40]
lea ebp, [esi + edx]
push ebp
call fcn.004144a0
test al, al
je 0x49080b
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.00414480
push 0
mov ecx, 0x52004c
inc ebx
call fcn.004be4c0
and eax, 0xff
sub eax, 3
cmp ebx, eax
jl 0x490773
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 0x51287c
call fcn.004be240
push esi
call fcn.004cfca0
sub esp, 8
lea eax, [esp + 0x64]
mov ecx, esp
mov dword [esp + 0x90], esp
push eax
mov byte [esp + 0x204], 4
call fcn.00413ad0
mov ecx, 0x5200a8
mov byte [esp + 0x200], 2
call fcn.004cae60
push str.344630393135313035432056413031373031303931383134344630393135313035432056413031373031303931383134
lea ecx, [esp + 0xd4]
push 0x510090
push ecx
call fcn.004de8d6
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.00414090
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.004144a0
test al, al
je 0x4908fc
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 0x50f8e4
mov byte [esp + 0x200], 5
call fcn.00413bf0
sub esp, 0x10
lea eax, [esp + 0x93]
mov ecx, esp
mov dword [esp + 0xb4], esp
push eax
push 0x512878
mov byte [esp + 0x210], 6
call fcn.00413bf0
sub esp, 0x10
lea edx, [esp + 0x9b]
mov ecx, esp
mov dword [esp + 0xd8], esp
push edx
push 0x520010
mov byte [esp + 0x220], 7
call fcn.00413bf0
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 0x51287c
call fcn.004be240
push esi
call fcn.004cfca0
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 0x512870
call fcn.004be240
push esi
call fcn.004cfca0
add esp, 8
lea eax, [esp + 0xfc]
mov ecx, 0x5200a8
mov byte [esp + 0x238], 2
push eax
call fcn.004cb120
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.00413e90
push 1
lea ecx, [esp + 0xa4]
mov byte [esp + 0x1dc], 2
call fcn.00414090
lea ecx, [esp + 0x6c]
call fcn.004c48d0
cmp ax, 2
je 0x490b7d
lea ecx, [esp + 0x6c]
call fcn.004c48d0
cmp ax, 1
jne 0x490888
lea eax, [esp + 0x88]
lea ecx, [esp + 0x6c]
push eax
call fcn.004ca4a0
mov edi, dword [eax + 4]
test edi, edi
jne 0x490a67
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.00414090
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 0x490afe
push 0
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x60], esp
push 6
push 0x50f634
call fcn.004be240
push ecx
mov byte [esp + 0x1e8], 0xb
mov ecx, esp
mov dword [esp + 0x6c], esp
push 6
push 0x512868
call fcn.004be240
mov ecx, 0x5200a8
mov byte [esp + 0x1e8], 2
call fcn.004caf10
jmp 0x490888
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.00491690
lea ecx, [esp + 0x14]
call fcn.004be4d0
lea ecx, [esp + 0x10]
call fcn.004be660
test ax, ax
jne 0x490bbc
push 0
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x60], esp
push 6
push 0x50f634
call fcn.004be240
push ecx
mov byte [esp + 0x1e8], 0xc
mov ecx, esp
mov dword [esp + 0x6c], esp
push 6
push 0x512868
call fcn.004be240
mov ecx, 0x5200a8
mov byte [esp + 0x1e8], 2
call fcn.004caf10
jmp 0x490888
lea ecx, [esp + 0x10]
mov byte [esp + 0x1d8], 1
call fcn.004be2e0
push 1
lea ecx, [esp + 0x40]
mov byte [esp + 0x1dc], 0
call fcn.00414090
push 1
lea ecx, [esp + 0x74]
mov dword [esp + 0x1dc], 0xffffffff
call fcn.00414090
jmp 0x49166f
push 7
push 0x512860
lea ecx, [esp + 0x30]
call fcn.004be240
push 7
push 0x512858
lea ecx, [esp + 0x34]
mov byte [esp + 0x1e0], 0xd
call fcn.004be240
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.004be1a0
push ebx
mov ecx, 0x520048
mov byte [esp + 0x1dc], 0x10
call fcn.004be4c0
push eax
push ebx
lea ecx, [esp + 0x30]
call fcn.004be5e0
push 4
mov ecx, 0x520048
call fcn.004be4c0
push eax
push 4
lea ecx, [esp + 0x30]
call fcn.004be5e0
push 5
mov ecx, 0x520048
call fcn.004be4c0
push eax
push 5
lea ecx, [esp + 0x30]
call fcn.004be5e0
push 6
mov ecx, 0x520048
call fcn.004be4c0
push eax
push 6
lea ecx, [esp + 0x30]
call fcn.004be5e0
push 7
mov ecx, 0x520048
call fcn.004be4c0
push eax
push ebx
lea ecx, [esp + 0x34]
call fcn.004be5e0
push 8
mov ecx, 0x520048
call fcn.004be4c0
push eax
push 1
lea ecx, [esp + 0x34]
call fcn.004be5e0
push 9
mov ecx, 0x520048
call fcn.004be4c0
push eax
push 2
lea ecx, [esp + 0x34]
call fcn.004be5e0
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
push ecx
push esi
lea ecx, [esp + 0x20]
call fcn.004776e0
lea edx, [esp + 0x28]
mov dword [esp + 0x20], esi
push edx
push 1
push esi
lea ecx, [esp + 0x24]
call fcn.004148e0
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x2c]
push eax
push 1
push ecx
lea ecx, [esp + 0x24]
call fcn.004148e0
lea edx, [esp + 0x38]
lea eax, [esp + 0x18]
push edx
push eax
mov ecx, ebp
call fcn.004a43d0
test ax, ax
jge 0x490ded
lea ecx, [esp + 0x38]
mov byte [esp + 0x1d8], 0xf
call fcn.004be2e0
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
cmp esi, edi
mov byte [esp + 0x1d8], 0xe
je 0x490d46
mov ecx, esi
call fcn.004be2e0
add esi, 4
cmp esi, edi
jne 0x490d34
mov esi, dword [esp + 0x1c]
push esi
call fcn.004de1a0
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.004be2e0
lea ecx, [esp + 0x28]
mov byte [esp + 0x1d8], 2
call fcn.004be2e0
lea ecx, [esp + 0x10]
mov byte [esp + 0x1d8], 1
call fcn.004be2e0
mov ecx, dword [esp + 0x40]
cmp ecx, ebx
je 0x490db2
mov al, byte [ecx - 1]
test al, al
je 0x490da8
cmp al, 0xff
je 0x490da8
dec al
mov byte [ecx - 1], al
jmp 0x490db2
dec ecx
push ecx
call fcn.004de1a0
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 0x491539
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x491530
cmp al, 0xff
je 0x491530
dec al
mov byte [ecx], al
or ax, 0xffff
jmp 0x491673
push 4
push 0x512850
lea ecx, [esp + 0x58]
call fcn.004be240
push 7
push 0x512848
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1e0], 0x11
call fcn.004be240
push 7
push str.UUUUUUU
lea ecx, [esp + 0x54]
mov byte [esp + 0x1e0], 0x12
call fcn.004be240
push ebx
mov ecx, 0x52004c
mov byte [esp + 0x1dc], 0x13
call fcn.004be4c0
cmp al, 8
mov byte [esp + 0x30], al
jae 0x4910a6
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x50]
push esi
push ebx
call fcn.004be5e0
and esi, 0xff
xor edi, edi
add esi, 0xfffffffd
cmp esi, ebx
jle 0x490e83
push edi
lea ecx, [esp + 0x14]
call fcn.004be4c0
push eax
lea ecx, [esp + 0x54]
call fcn.004be640
inc edi
cmp edi, esi
jl 0x490e6a
lea ecx, [esp + 0x38]
push 1
lea edx, [esp + 0x54]
push ecx
push edx
mov ecx, ebp
call fcn.004a3df0
cmp ax, bx
jge 0x490f7c
lea ecx, [esp + 0x4c]
mov byte [esp + 0x1d8], 0x12
call fcn.004be2e0
lea ecx, [esp + 0x34]
mov byte [esp + 0x1d8], 0x11
call fcn.004be2e0
lea ecx, [esp + 0x50]
mov byte [esp + 0x1d8], 0x10
call fcn.004be2e0
lea ecx, [esp + 0x38]
mov byte [esp + 0x1d8], 0xf
call fcn.004be2e0
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
cmp esi, eax
mov byte [esp + 0x1d8], 0xe
mov edi, eax
je 0x490f0b
mov ecx, esi
call fcn.004be2e0
add esi, 4
cmp esi, edi
jne 0x490ef9
mov esi, dword [esp + 0x1c]
push esi
call fcn.004de1a0
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.004be2e0
lea ecx, [esp + 0x28]
mov byte [esp + 0x1d8], 2
call fcn.004be2e0
lea ecx, [esp + 0x10]
mov byte [esp + 0x1d8], 1
call fcn.004be2e0
mov ecx, dword [esp + 0x40]
cmp ecx, ebx
je 0x490db2
mov al, byte [ecx - 1]
test al, al
je 0x490da8
cmp al, 0xff
je 0x490da8
dec al
mov byte [ecx - 1], al
jmp 0x490db2
jne 0x491415
xor ebx, ebx
push ebx
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x60], esp
push 6
push 0x50f634
call fcn.004be240
push ecx
mov byte [esp + 0x1e8], 0x14
mov ecx, esp
mov dword [esp + 0x6c], esp
push 6
push 0x512838
call fcn.004be240
mov ecx, 0x5200a8
mov byte [esp + 0x1e8], 0x13
call fcn.004caf10
lea ecx, [esp + 0x4c]
mov byte [esp + 0x1d8], 0x12
call fcn.004be2e0
lea ecx, [esp + 0x34]
mov byte [esp + 0x1d8], 0x11
call fcn.004be2e0
lea ecx, [esp + 0x50]
mov byte [esp + 0x1d8], 0x10
call fcn.004be2e0
lea ecx, [esp + 0x38]
mov byte [esp + 0x1d8], 0xf
call fcn.004be2e0
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 0x491035
mov ecx, esi
call fcn.004be2e0
add esi, 4
cmp esi, edi
jne 0x491023
mov eax, dword [esp + 0x1c]
push eax
call fcn.004de1a0
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.004be2e0
lea ecx, [esp + 0x28]
mov byte [esp + 0x1d8], 2
call fcn.004be2e0
lea ecx, [esp + 0x10]
mov byte [esp + 0x1d8], 1
call fcn.004be2e0
mov ecx, dword [esp + 0x40]
cmp ecx, ebx
je 0x4913de
mov al, byte [ecx - 1]
test al, al
je 0x4913d4
cmp al, 0xff
je 0x4913d4
dec al
mov byte [ecx - 1], al
jmp 0x4913de
mov edi, dword [esp + 0x30]
lea ecx, [esp + 0x34]
push edi
push 0
call fcn.004be5e0
push 0
lea ecx, [esp + 0x14]
call fcn.004be4c0
push eax
push 4
lea ecx, [esp + 0x3c]
call fcn.004be5e0
push 1
lea ecx, [esp + 0x14]
call fcn.004be4c0
push eax
push 5
lea ecx, [esp + 0x3c]
call fcn.004be5e0
push 2
lea ecx, [esp + 0x14]
call fcn.004be4c0
push eax
push 6
lea ecx, [esp + 0x3c]
call fcn.004be5e0
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
push eax
push esi
lea ecx, [esp + 0x20]
call fcn.004776e0
lea ecx, [esp + 0x34]
mov dword [esp + 0x20], esi
push ecx
push 1
push esi
lea ecx, [esp + 0x24]
call fcn.004148e0
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 0x4911ac
mov dword [esp + 0x30], 7
xor esi, esi
mov ecx, dword [esp + 0x30]
add ecx, esi
cmp ecx, edi
jle 0x49115f
push 0x55
jmp 0x491177
lea edx, [ebp*8]
lea ecx, [esp + 0x10]
sub edx, ebp
lea eax, [edx + esi - 4]
push eax
call fcn.004be4c0
push eax
push esi
lea ecx, [esp + 0x54]
call fcn.004be5e0
inc esi
cmp esi, 7
jl 0x491151
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x4c]
push ecx
push 1
push edx
lea ecx, [esp + 0x24]
call fcn.004148e0
mov ecx, dword [esp + 0x30]
inc ebp
add ecx, 7
cmp ebp, ebx
mov dword [esp + 0x30], ecx
jle 0x49114f
lea eax, [esp + 0x38]
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, dword [esp + 0x6c]
call fcn.004a43d0
test ax, ax
jge 0x4912b9
lea ecx, [esp + 0x4c]
mov byte [esp + 0x1d8], 0x12
call fcn.004be2e0
lea ecx, [esp + 0x34]
mov byte [esp + 0x1d8], 0x11
call fcn.004be2e0
lea ecx, [esp + 0x50]
mov byte [esp + 0x1d8], 0x10
call fcn.004be2e0
lea ecx, [esp + 0x38]
mov byte [esp + 0x1d8], 0xf
call fcn.004be2e0
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
cmp esi, eax
mov byte [esp + 0x1d8], 0xe
mov edi, eax
je 0x491234
mov ecx, esi
call fcn.004be2e0
add esi, 4
cmp esi, edi
jne 0x491222
mov esi, dword [esp + 0x1c]
push esi
call fcn.004de1a0
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.004be2e0
lea ecx, [esp + 0x28]
mov byte [esp + 0x1d8], 2
call fcn.004be2e0
lea ecx, [esp + 0x10]
mov byte [esp + 0x1d8], 1
call fcn.004be2e0
mov ecx, dword [esp + 0x40]
cmp ecx, esi
je 0x4912a2
mov al, byte [ecx - 1]
test al, al
je 0x491298
cmp al, 0xff
je 0x491298
dec al
mov byte [ecx - 1], al
jmp 0x4912a2
dec ecx
push ecx
call fcn.004de1a0
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 0x490dc4
jne 0x491415
xor ebx, ebx
push ebx
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x60], esp
push 6
push 0x50f634
call fcn.004be240
push ecx
mov byte [esp + 0x1e8], 0x15
mov ecx, esp
mov dword [esp + 0x6c], esp
push 6
push 0x512838
call fcn.004be240
mov ecx, 0x5200a8
mov byte [esp + 0x1e8], 0x13
call fcn.004caf10
lea ecx, [esp + 0x4c]
mov byte [esp + 0x1d8], 0x12
call fcn.004be2e0
lea ecx, [esp + 0x34]
mov byte [esp + 0x1d8], 0x11
call fcn.004be2e0
lea ecx, [esp + 0x50]
mov byte [esp + 0x1d8], 0x10
call fcn.004be2e0
lea ecx, [esp + 0x38]
mov byte [esp + 0x1d8], 0xf
call fcn.004be2e0
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 0x491372
mov ecx, esi
call fcn.004be2e0
add esi, 4
cmp esi, edi
jne 0x491360
mov eax, dword [esp + 0x1c]
push eax
call fcn.004de1a0
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.004be2e0
lea ecx, [esp + 0x28]
mov byte [esp + 0x1d8], 2
call fcn.004be2e0
lea ecx, [esp + 0x10]
mov byte [esp + 0x1d8], 1
call fcn.004be2e0
mov ecx, dword [esp + 0x40]
cmp ecx, ebx
je 0x4913de
mov al, byte [ecx - 1]
test al, al
je 0x4913d4
cmp al, 0xff
je 0x4913d4
dec al
mov byte [ecx - 1], al
jmp 0x4913de
dec ecx
push ecx
call fcn.004de1a0
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 0x49166f
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x491666
cmp al, 0xff
je 0x491666
dec al
mov byte [ecx], al
jmp 0x49166f
mov ecx, dword [esp + 0x64]
call fcn.0048de50
test ax, ax
jge 0x491542
lea ecx, [esp + 0x4c]
mov byte [esp + 0x1d8], 0x12
call fcn.004be2e0
lea ecx, [esp + 0x34]
mov byte [esp + 0x1d8], 0x11
call fcn.004be2e0
lea ecx, [esp + 0x50]
mov byte [esp + 0x1d8], 0x10
call fcn.004be2e0
lea ecx, [esp + 0x38]
mov byte [esp + 0x1d8], 0xf
call fcn.004be2e0
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
cmp esi, eax
mov byte [esp + 0x1d8], 0xe
mov edi, eax
je 0x491493
mov ecx, esi
call fcn.004be2e0
add esi, 4
cmp esi, edi
jne 0x491481
mov esi, dword [esp + 0x1c]
push esi
call fcn.004de1a0
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.004be2e0
lea ecx, [esp + 0x28]
mov byte [esp + 0x1d8], 2
call fcn.004be2e0
lea ecx, [esp + 0x10]
mov byte [esp + 0x1d8], 1
call fcn.004be2e0
mov ecx, dword [esp + 0x40]
cmp ecx, esi
je 0x491501
mov al, byte [ecx - 1]
test al, al
je 0x4914f7
cmp al, 0xff
je 0x4914f7
dec al
mov byte [ecx - 1], al
jmp 0x491501
dec ecx
push ecx
call fcn.004de1a0
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 0x491539
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x491530
cmp al, 0xff
je 0x491530
dec al
mov byte [ecx], al
or ax, 0xffff
jmp 0x491673
push ecx
call fcn.004de1a0
add esp, 4
or ax, 0xffff
jmp 0x491673
xor ebx, ebx
push ebx
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x60], esp
push 6
push 0x50f634
call fcn.004be240
push ecx
mov byte [esp + 0x1e8], 0x16
mov ecx, esp
mov dword [esp + 0x6c], esp
push 6
push 0x512830
call fcn.004be240
mov ecx, 0x5200a8
mov byte [esp + 0x1e8], 0x13
call fcn.004caf10
lea ecx, [esp + 0x4c]
mov byte [esp + 0x1d8], 0x12
call fcn.004be2e0
lea ecx, [esp + 0x34]
mov byte [esp + 0x1d8], 0x11
call fcn.004be2e0
lea ecx, [esp + 0x50]
mov byte [esp + 0x1d8], 0x10
call fcn.004be2e0
lea ecx, [esp + 0x38]
mov byte [esp + 0x1d8], 0xf
call fcn.004be2e0
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 0x4915f5
mov ecx, esi
call fcn.004be2e0
add esi, 4
cmp esi, edi
jne 0x4915e3
mov eax, dword [esp + 0x1c]
push eax
call fcn.004de1a0
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.004be2e0
lea ecx, [esp + 0x28]
mov byte [esp + 0x1d8], 2
call fcn.004be2e0
lea ecx, [esp + 0x10]
mov byte [esp + 0x1d8], 1
call fcn.004be2e0
mov ecx, dword [esp + 0x40]
cmp ecx, ebx
je 0x4913de
mov al, byte [ecx - 1]
test al, al
je 0x4913d4
cmp al, 0xff
je 0x4913d4
dec al
mov byte [ecx - 1], al
jmp 0x4913de
push ecx
call fcn.004de1a0
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