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

Disassembly:
sub esp, 0x90
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov eax, dword [ebp + 0x32e8c]
mov ecx, dword [ebp + 0x32e88]
cmp ecx, eax
je 0x499eb7
lea ecx, [eax + eax*4 + 5]
pop edi
pop esi
mov edx, dword [ebp + ecx*8 + 0x10]
lea ecx, [ebp + ecx*8]
sub edx, eax
mov eax, dword [esp + 0xa4]
mov dword [eax], edx
mov eax, dword [esp + 0xa0]
mov edx, dword [ecx + 0x14]
mov dword [eax], edx
mov ecx, dword [ecx + 0x10]
mov dword [ebp + 0x32e8c], ecx
pop ebp
xor eax, eax
pop ebx
add esp, 0x90
ret 0xc
mov al, byte [ebp + 0x32e90]
xor ebx, ebx
test al, al
mov dword [ebp + 0x32e88], ebx
mov dword [ebp + 0x32e8c], ebx
jne 0x499ef4
lea edx, [esp + 0x80]
lea eax, [esp + 0x68]
push edx
push eax
mov ecx, ebp
call fcn.0049b370
cmp eax, ebx
je 0x499f12
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret 0xc
mov ecx, dword [ebp + 0x32e7c]
mov edx, dword [ebp + 0x32e80]
mov dword [esp + 0x68], ecx
mov dword [esp + 0x80], edx
mov byte [ebp + 0x32e90], 0
mov eax, dword [ebp + 0x28028]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov esi, eax
mov eax, dword [ebp + 0x28028]
push eax
dec esi
mov edx, dword [eax]
call dword [edx + 0x20]
inc eax
cmp eax, 2
mov dword [esp + 0x3c], eax
jae 0x499f60
mov eax, dword [esp + 0xa8]
mov ecx, dword [esp + 0xac]
pop edi
pop esi
mov dword [eax], 0xffffffff
pop ebp
mov dword [ecx], 1
xor eax, eax
pop ebx
add esp, 0x90
ret 0xc
cmp eax, 0x111
jbe 0x499f6f
mov dword [esp + 0x3c], 0x111
mov dl, byte [esi]
lea eax, [ebp + 0x14]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x13], dl
mov dword [esp + 0x34], ebx
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x24]
mov al, byte [esp + 0x13]
lea edx, [ebx*4]
mov ecx, dword [ecx]
mov dword [esp + edx + 0x6c], ecx
lea edi, [ecx + 1]
mov ecx, esi
sub ecx, edi
cmp al, byte [ecx]
jne 0x499ff4
mov al, byte [esi + 1]
cmp al, byte [ecx + 1]
jne 0x499ff4
mov eax, dword [esp + 0x3c]
mov ecx, 2
cmp eax, ecx
jbe 0x499fd6
mov bl, byte [ecx + esi]
mov eax, ecx
sub eax, edi
cmp bl, byte [eax + esi]
jne 0x499fd2
mov eax, dword [esp + 0x3c]
inc ecx
cmp ecx, eax
jb 0x499fbd
mov ebx, dword [esp + 0x2c]
mov eax, dword [esp + 0x34]
mov dword [esp + edx + 0x90], ecx
cmp ecx, dword [esp + eax + 0x90]
jbe 0x499fff
mov dword [esp + 0x40], ebx
mov dword [esp + 0x34], edx
jmp 0x499fff
mov dword [esp + edx + 0x90], 0
mov ecx, dword [esp + 0x24]
inc ebx
add ecx, 4
cmp ebx, 4
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x24], ecx
jb 0x499f88
mov eax, dword [esp + 0x40]
mov ecx, dword [ebp + 0x32e78]
mov edx, dword [esp + eax*4 + 0x90]
cmp edx, ecx
mov dword [esp + 0x50], edx
jb 0x49a059
mov ecx, dword [esp + 0xa8]
mov dword [ecx], eax
mov eax, dword [esp + 0xac]
mov ecx, ebp
mov dword [eax], edx
dec edx
push edx
call fcn.00499d90
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret 0xc
mov eax, dword [esp + 0x68]
lea edi, [ebp + 0x325e4]
cmp eax, ecx
jb 0x49a09d
mov ecx, dword [esp + 0x80]
mov edx, dword [edi + ecx*4 - 4]
mov ecx, dword [esp + 0xa8]
add edx, 4
mov dword [ecx], edx
mov edx, dword [esp + 0xac]
mov ecx, ebp
mov dword [edx], eax
dec eax
push eax
call fcn.00499d90
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret 0xc
mov edi, dword [esp + 0x6c]
mov cl, byte [esp + 0x13]
sub esi, edi
cmp eax, 2
mov byte [esp + 0x34], cl
mov bl, byte [esi - 1]
mov byte [esp + 0x40], bl
jae 0x49a0e9
cmp cl, bl
je 0x49a0e9
cmp edx, 2
jae 0x49a0e9
mov eax, dword [esp + 0xa8]
mov ecx, dword [esp + 0xac]
pop edi
pop esi
mov dword [eax], 0xffffffff
pop ebp
mov dword [ecx], 1
xor eax, eax
pop ebx
add esp, 0x90
ret 0xc
mov al, byte [ebp + 0x10]
mov esi, dword [ebp + 0x33ae0]
mov edi, dword [esp + 0xa4]
mov edx, eax
and edx, 0xff
and esi, edi
shl edx, 4
add edx, esi
mov byte [ebp + 0x28], al
mov ecx, dword [ebp + edx*4 + 0x28070]
mov edx, dword [ebp + 0x325d4]
shr ecx, 2
cmp al, 7
mov ebx, dword [ecx*4 + 0x4eafd8]
mov ecx, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x44]
setae al
push ecx
push eax
mov cl, 8
xor eax, eax
mov al, byte [ebp + 0x11]
sub cl, dl
shr eax, cl
mov ecx, dword [ebp + 0x325dc]
and ecx, edi
mov dword [esp + 0x2c], ecx
mov ecx, edx
mov edx, dword [esp + 0x2c]
shl edx, cl
add eax, edx
lea ecx, [eax + eax*2]
mov eax, dword [ebp + 0x325d0]
shl ecx, 0xa
add ecx, eax
call fcn.00498d30
add eax, ebx
mov edi, 0x800
mov dword [ebp + 0x5c], eax
mov dword [ebp + 0x64], 0xffffffff
mov byte [ebp + 0x51], 0
mov cl, byte [ebp + 0x10]
mov eax, ecx
and eax, 0xff
mov edx, eax
shl edx, 4
add edx, esi
mov ebx, dword [ebp + edx*4 + 0x28070]
sub edi, ebx
mov ebx, dword [ebp + eax*4 + 0x28370]
shr edi, 2
mov al, byte [esp + 0x34]
mov edx, dword [edi*4 + 0x4eafd8]
mov edi, 0x800
sub edi, ebx
mov dword [esp + 0x28], edx
shr edi, 2
mov edi, dword [edi*4 + 0x4eafd8]
add edi, edx
mov dl, byte [esp + 0x40]
cmp dl, al
mov dword [esp + 0x48], edi
jne 0x49a21c
mov byte [esp + 0x20], cl
mov eax, dword [esp + 0x20]
and eax, 0xff
mov ecx, eax
shl ecx, 4
add ecx, esi
mov edx, dword [ebp + ecx*4 + 0x28430]
mov ecx, dword [ebp + eax*4 + 0x283a0]
shr edx, 2
shr ecx, 2
mov eax, dword [edx*4 + 0x4eafd8]
mov ebx, dword [ecx*4 + 0x4eafd8]
mov ecx, dword [ebp + 0x5c]
add eax, ebx
add eax, edi
cmp eax, ecx
jae 0x49a21c
mov dword [ebp + 0x5c], eax
mov dword [ebp + 0x64], 0
mov byte [ebp + 0x51], 0
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x50]
cmp eax, ecx
jae 0x49a22a
mov eax, ecx
cmp eax, 2
mov dword [esp + 0x38], eax
jae 0x49a25b
mov eax, dword [esp + 0xa8]
mov edx, dword [ebp + 0x64]
mov ecx, dword [esp + 0xac]
pop edi
pop esi
mov dword [eax], edx
pop ebp
mov dword [ecx], 1
xor eax, eax
pop ebx
add esp, 0x90
ret 0xc
mov edx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x70]
xor ebx, ebx
mov dword [ebp + 0x60], ebx
mov dword [ebp + 0x40], edx
mov edx, dword [esp + 0x74]
mov dword [ebp + 0x44], ecx
mov ecx, dword [esp + 0x78]
mov dword [ebp + 0x48], edx
lea edx, [eax + eax*4]
mov dword [ebp + 0x4c], ecx
lea ecx, [ebp + edx*8 + 0x34]
mov dword [ecx], 0xfffffff
dec eax
sub ecx, 0x28
cmp eax, 2
jae 0x49a283
mov dword [esp + 0x2c], ebx
mov edi, dword [esp + ebx*4 + 0x90]
cmp edi, 2
jb 0x49a3ac
mov al, byte [ebp + 0x10]
test ebx, ebx
mov byte [esp + 0x34], al
jne 0x49a2ec
mov eax, dword [esp + 0x34]
mov edx, 0x800
and eax, 0xff
mov ecx, eax
shl ecx, 4
add ecx, esi
sub edx, dword [ebp + ecx*4 + 0x28430]
mov ecx, dword [ebp + eax*4 + 0x283a0]
shr ecx, 2
shr edx, 2
mov eax, dword [edx*4 + 0x4eafd8]
mov edx, dword [ecx*4 + 0x4eafd8]
add eax, edx
jmp 0x49a362
mov ecx, dword [esp + 0x34]
mov edx, 0x800
and ecx, 0xff
sub edx, dword [ebp + ecx*4 + 0x283a0]
shr edx, 2
cmp ebx, 1
mov eax, dword [edx*4 + 0x4eafd8]
jne 0x49a324
mov ecx, dword [ebp + ecx*4 + 0x283d0]
shr ecx, 2
add eax, dword [ecx*4 + 0x4eafd8]
jmp 0x49a362
lea edx, [ebx - 2]
mov ebx, 0x800
sub ebx, dword [ebp + ecx*4 + 0x283d0]
mov ecx, dword [ebp + ecx*4 + 0x28400]
sub ecx, edx
neg edx
xor ecx, edx
shr ecx, 2
shr ebx, 2
and ecx, 0x1ff
mov edx, dword [ebx*4 + 0x4eafd8]
mov ebx, dword [ecx*4 + 0x4eafd8]
add edx, ebx
mov ebx, dword [esp + 0x2c]
add eax, edx
mov ecx, dword [esp + 0x48]
mov edx, esi
shl edx, 4
add edx, esi
add eax, ecx
shl edx, 4
mov dword [esp + 0x20], eax
add edx, edi
lea eax, [edi + edi*4]
lea edx, [ebp + edx*4 + 0x2e184]
lea eax, [ebp + eax*8 + 0x34]
mov ecx, dword [edx]
add ecx, dword [esp + 0x20]
cmp ecx, dword [eax]
jae 0x49a3a0
mov dword [eax], ecx
mov dword [eax + 4], 0
mov dword [eax + 8], ebx
mov byte [eax - 0xb], 0
dec edi
sub edx, 4
sub eax, 0x28
cmp edi, 2
jae 0x49a386
inc ebx
cmp ebx, 4
mov dword [esp + 0x2c], ebx
jb 0x49a296
xor ecx, ecx
mov edi, dword [esp + 0x90]
mov cl, byte [ebp + 0x10]
mov edx, dword [ebp + ecx*4 + 0x28370]
mov ecx, dword [esp + 0x28]
shr edx, 2
mov eax, dword [edx*4 + 0x4eafd8]
add eax, ecx
cmp edi, 2
inc edi
mov dword [esp + 0x20], eax
jae 0x49a3ec
mov edi, 2
cmp edi, dword [esp + 0x68]
ja 0x49a52e
mov edx, dword [ebp + 0x325e4]
lea eax, [ebp + 0x325e4]
xor ecx, ecx
cmp edi, edx
mov dword [esp + 0x3c], ecx
jbe 0x49a41d
mov edx, dword [eax + 8]
add eax, 8
add ecx, 2
cmp edi, edx
ja 0x49a40c
mov dword [esp + 0x3c], ecx
mov edx, esi
lea eax, [ebp + 0x325e4]
shl edx, 4
add edx, esi
lea eax, [eax + ecx*4]
shl edx, 4
add edx, edi
mov dword [esp + 0x34], eax
lea edx, [ebp + edx*4 + 0x29538]
mov dword [esp + 0x24], edx
lea edx, [edi + edi*4]
lea esi, [ebp + edx*8 + 0x34]
mov edx, dword [eax + 4]
lea eax, [edi - 2]
cmp eax, 4
jb 0x49a458
mov eax, 3
cmp edx, 0x80
jae 0x49a46e
shl eax, 7
add eax, edx
mov eax, dword [ebp + eax*4 + 0x33294]
jmp 0x49a4d4
cmp edx, 0x20000
jae 0x49a48a
mov ecx, edx
xor ebx, ebx
shr ecx, 6
mov bl, byte [ecx + 0x4ea3d0]
mov ecx, ebx
add ecx, 0xc
jmp 0x49a4b6
cmp edx, 0x8000000
mov ecx, edx
jae 0x49a4a6
shr ecx, 0x10
xor ebx, ebx
mov bl, byte [ecx + 0x4ea3d0]
mov ecx, ebx
add ecx, 0x20
jmp 0x49a4b6
shr ecx, 0x1a
xor ebx, ebx
mov bl, byte [ecx + 0x4ea3d0]
mov ecx, ebx
add ecx, 0x34
shl eax, 6
add eax, ecx
mov ecx, edx
and ecx, 0xf
mov eax, dword [ebp + eax*4 + 0x32e94]
mov ebx, dword [ebp + ecx*4 + 0x33a94]
mov ecx, dword [esp + 0x3c]
add eax, ebx
mov ebx, dword [esp + 0x24]
add eax, dword [ebx]
mov ebx, dword [esp + 0x20]
add eax, ebx
mov ebx, dword [esi]
cmp eax, ebx
jae 0x49a4f9
add edx, 4
mov dword [esi], eax
mov dword [esi + 4], 0
mov dword [esi + 8], edx
mov byte [esi - 0xb], 0
mov eax, dword [esp + 0x34]
cmp edi, dword [eax]
jne 0x49a51a
mov edx, dword [esp + 0x80]
add ecx, 2
add eax, 8
cmp ecx, edx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x34], eax
je 0x49a52e
mov ebx, dword [esp + 0x24]
inc edi
add ebx, 4
add esi, 0x28
mov dword [esp + 0x24], ebx
jmp 0x49a448
xor ebx, ebx
mov eax, dword [esp + 0x38]
inc ebx
cmp ebx, eax
mov dword [esp + 0x5c], ebx
je 0x49b31d
lea edx, [esp + 0x60]
lea eax, [esp + 0x3c]
push edx
push eax
mov ecx, ebp
call fcn.0049b370
test eax, eax
jne 0x49b35a
mov eax, dword [esp + 0x3c]
mov ecx, dword [ebp + 0x32e78]
cmp eax, ecx
jae 0x49b328
mov edx, dword [esp + 0xa4]
lea eax, [ebx + 1]
inc edx
lea ecx, [eax + eax*4]
mov dword [esp + 0xa4], edx
mov dl, byte [ebp + ecx*8 + 1]
mov esi, dword [ebp + ecx*8 + 0x10]
lea eax, [ebp + ecx*8]
test dl, dl
je 0x49a5ee
mov cl, byte [eax + 2]
dec esi
test cl, cl
je 0x49a5d0
mov ecx, dword [eax + 4]
inc ecx
lea ecx, [ecx + ecx*4]
mov cl, byte [ebp + ecx*8]
mov byte [esp + 0x14], cl
mov ecx, dword [eax + 8]
cmp ecx, 4
mov ecx, dword [esp + 0x14]
jae 0x49a5c2
and ecx, 0xff
mov cl, byte [ecx + 0x4b9b2c]
jmp 0x49a5d8
and ecx, 0xff
mov cl, byte [ecx + 0x4b9b20]
jmp 0x49a5d8
lea ecx, [esi + esi*4 + 5]
mov cl, byte [ebp + ecx*8]
mov byte [esp + 0x14], cl
mov ecx, dword [esp + 0x14]
and ecx, 0xff
mov cl, byte [ecx + 0x4b9b14]
jmp 0x49a5f6
lea ecx, [esi + esi*4 + 5]
mov cl, byte [ebp + ecx*8]
mov byte [esp + 0x14], cl
lea ecx, [ebx - 1]
cmp esi, ecx
jne 0x49a636
mov ecx, dword [eax + 0x14]
mov edx, dword [esp + 0x14]
test ecx, ecx
jne 0x49a621
and edx, 0xff
mov cl, byte [edx + 0x4b9b38]
mov byte [esp + 0x14], cl
jmp 0x49a6ef
and edx, 0xff
mov cl, byte [edx + 0x4b9b14]
mov byte [esp + 0x14], cl
jmp 0x49a6ef
test dl, dl
je 0x49a659
mov cl, byte [eax + 2]
test cl, cl
je 0x49a659
mov ecx, dword [esp + 0x14]
mov esi, dword [eax + 4]
mov edx, dword [eax + 8]
and ecx, 0xff
mov cl, byte [ecx + 0x4b9b2c]
jmp 0x49a67f
mov edx, dword [eax + 0x14]
mov ecx, dword [esp + 0x14]
cmp edx, 4
jae 0x49a673
and ecx, 0xff
mov cl, byte [ecx + 0x4b9b2c]
jmp 0x49a67f
and ecx, 0xff
mov cl, byte [ecx + 0x4b9b20]
mov byte [esp + 0x14], cl
lea ecx, [esi + esi*4 + 5]
cmp edx, 4
lea ecx, [ebp + ecx*8]
mov dword [esp + 0x20], ecx
jae 0x49a6d1
mov esi, dword [ecx + edx*4 + 0x18]
mov dword [esp + 0x6c], esi
mov esi, 1
cmp edx, esi
jb 0x49a6bc
lea esi, [ecx + 0x18]
mov ecx, edx
lea edi, [esp + 0x70]
rep movsd dword es:[edi], dword [esi]
lea esi, [edx + 1]
cmp esi, 4
jae 0x49a6ef
mov ecx, dword [esp + 0x20]
lea edx, [ecx + esi*4 + 0x18]
mov ecx, 4
lea edi, [esp + esi*4 + 0x6c]
sub ecx, esi
mov esi, edx
rep movsd dword es:[edi], dword [esi]
jmp 0x49a6ef
add edx, 0xfffffffc
add ecx, 0x18
mov dword [esp + 0x6c], edx
mov edx, dword [ecx]
mov dword [esp + 0x70], edx
mov edx, dword [ecx + 4]
mov ecx, dword [ecx + 8]
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], ecx
mov dl, byte [esp + 0x14]
mov esi, dword [esp + 0x6c]
mov ecx, dword [esp + 0x70]
mov byte [eax], dl
mov edx, dword [esp + 0x74]
mov dword [eax + 0x18], esi
mov dword [eax + 0x1c], ecx
mov ecx, dword [esp + 0x78]
mov dword [eax + 0x20], edx
mov dword [eax + 0x24], ecx
mov edx, dword [eax + 0xc]
mov eax, dword [ebp + 0x28028]
push eax
mov dword [esp + 0x44], edx
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov edi, eax
dec edi
mov eax, edi
mov dword [esp + 0x48], edi
sub eax, esi
mov esi, dword [esp + 0xa4]
mov dl, byte [edi]
mov cl, byte [eax - 1]
mov eax, dword [ebp + 0x33ae0]
mov byte [esp + 0x7c], cl
mov ecx, dword [esp + 0x14]
and ecx, 0xff
and eax, esi
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x20], eax
shl ecx, 4
add eax, ecx
mov byte [esp + 0x84], dl
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x58], eax
mov edx, dword [ebp + eax*4 + 0x28070]
push ecx
mov cl, byte [esp + 0x18]
shr edx, 2
cmp cl, 7
mov eax, dword [edx*4 + 0x4eafd8]
mov edx, dword [ebp + 0x325d4]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x80]
setae cl
push eax
push ecx
mov cl, 8
xor eax, eax
mov al, byte [edi - 1]
sub cl, dl
shr eax, cl
mov ecx, dword [ebp + 0x325dc]
and ecx, esi
mov dword [esp + 0x5c], ecx
mov ecx, edx
mov edx, dword [esp + 0x5c]
shl edx, cl
add eax, edx
mov edx, dword [ebp + 0x325d0]
lea ecx, [eax + eax*2]
shl ecx, 0xa
add ecx, edx
call fcn.00498d30
mov esi, eax
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x40]
add esi, eax
lea eax, [ebx + ebx*4 + 0xa]
add esi, edx
mov byte [esp + 0x13], 0
mov ecx, dword [ebp + eax*8 + 0xc]
lea eax, [ebp + eax*8]
cmp esi, ecx
jae 0x49a80c
mov dword [eax + 0xc], esi
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], 0xffffffff
mov byte [eax + 1], 0
mov byte [esp + 0x13], 1
mov edx, dword [esp + 0x58]
mov ecx, 0x800
sub ecx, dword [ebp + edx*4 + 0x28070]
mov edx, dword [esp + 0x40]
shr ecx, 2
mov ecx, dword [ecx*4 + 0x4eafd8]
add ecx, edx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x50], ecx
mov ecx, 0x800
sub ecx, dword [ebp + edx*4 + 0x28370]
mov edx, dword [esp + 0x50]
shr ecx, 2
mov ecx, dword [ecx*4 + 0x4eafd8]
add ecx, edx
mov dl, byte [esp + 0x7c]
mov dword [esp + 0x64], ecx
mov cl, byte [esp + 0x84]
cmp dl, cl
jne 0x49a8bc
cmp dword [eax + 0x10], ebx
jae 0x49a86f
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x49a8bc
mov edx, dword [esp + 0x58]
mov ecx, dword [ebp + edx*4 + 0x28430]
mov edx, dword [esp + 0x2c]
shr ecx, 2
mov edx, dword [ebp + edx*4 + 0x283a0]
mov ecx, dword [ecx*4 + 0x4eafd8]
shr edx, 2
add ecx, dword [edx*4 + 0x4eafd8]
mov edx, dword [esp + 0x64]
add ecx, edx
mov edx, dword [eax + 0xc]
cmp ecx, edx
ja 0x49a8bc
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], 0
mov byte [eax + 1], 0
mov byte [esp + 0x13], 1
mov eax, dword [ebp + 0x28028]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
mov ecx, 0xfff
inc eax
sub ecx, ebx
mov dword [esp + 0x40], eax
cmp ecx, eax
jae 0x49a8de
mov eax, ecx
mov dword [esp + 0x40], eax
cmp eax, 2
mov dword [esp + 0x24], eax
jb 0x49a530
mov ecx, dword [ebp + 0x32e78]
cmp eax, ecx
jbe 0x49a8f9
mov dword [esp + 0x24], ecx
mov dl, byte [esp + 0x13]
test dl, dl
jne 0x49aa7a
mov dl, byte [esp + 0x84]
cmp byte [esp + 0x7c], dl
je 0x49aa7a
mov edx, dword [esp + 0x6c]
inc edx
inc ecx
cmp eax, ecx
mov dword [esp + 0x28], edx
jb 0x49a926
mov eax, ecx
mov ecx, 1
mov dword [esp + 0x30], eax
cmp eax, ecx
jbe 0x49a94c
mov edx, dword [esp + 0x28]
mov eax, ecx
sub eax, edx
mov dl, byte [ecx + edi]
cmp dl, byte [eax + edi]
jne 0x49a94c
mov eax, dword [esp + 0x30]
inc ecx
cmp ecx, eax
jb 0x49a933
dec ecx
cmp ecx, 2
mov dword [esp + 0x30], ecx
jb 0x49aa7a
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0xa4]
mov cl, byte [eax + 0x4b9b14]
lea eax, [edx + 1]
mov byte [esp + 0x8c], cl
mov ecx, dword [ebp + 0x33ae0]
and eax, ecx
mov ecx, dword [esp + 0x8c]
and ecx, 0xff
mov dword [esp + 0x18], eax
mov edx, ecx
mov dword [esp + 0x44], ecx
shl edx, 4
add eax, edx
mov edx, 0x800
sub edx, dword [ebp + ecx*4 + 0x28370]
shr edx, 2
mov ecx, dword [edx*4 + 0x4eafd8]
mov edx, 0x800
sub edx, dword [ebp + eax*4 + 0x28070]
shr edx, 2
add ecx, dword [edx*4 + 0x4eafd8]
mov edx, dword [esp + 0x30]
add ecx, esi
lea esi, [edx + ebx + 1]
mov edx, dword [esp + 0x38]
mov dword [esp + 0x1c], esi
cmp edx, esi
jae 0x49aa02
lea esi, [edx + edx*4]
lea esi, [ebp + esi*8 + 0x34]
mov dword [esp + 0x28], esi
mov esi, dword [esp + 0x1c]
sub esi, edx
add edx, esi
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x28]
add edx, 0x28
dec esi
mov dword [edx], 0xfffffff
jne 0x49a9f6
mov esi, dword [ebp + eax*4 + 0x28430]
mov eax, dword [esp + 0x44]
mov edx, 0x800
sub edx, esi
mov esi, dword [ebp + eax*4 + 0x283a0]
shr edx, 2
shr esi, 2
mov eax, dword [edx*4 + 0x4eafd8]
mov edx, dword [esi*4 + 0x4eafd8]
add eax, edx
mov edx, dword [esp + 0x18]
mov esi, edx
shl esi, 4
add esi, edx
mov edx, dword [esp + 0x30]
shl esi, 4
add esi, edx
add eax, dword [ebp + esi*4 + 0x2e184]
add eax, ecx
mov ecx, dword [esp + 0x1c]
lea ecx, [ecx + ecx*4 + 5]
mov edx, dword [ebp + ecx*8 + 0xc]
lea ecx, [ebp + ecx*8]
cmp eax, edx
jae 0x49aa7a
mov dword [ecx + 0xc], eax
lea eax, [ebx + 1]
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], 0
mov byte [ecx + 1], 1
mov byte [ecx + 2], 0
xor eax, eax
mov dword [esp + 0x30], 2
mov dword [esp + 0x18], eax
mov esi, dword [esp + eax*4 + 0x6c]
mov dl, byte [edi]
inc esi
mov eax, edi
sub eax, esi
mov dword [esp + 0x44], esi
cmp dl, byte [eax]
jne 0x49ae5c
mov cl, byte [edi + 1]
mov dl, byte [eax + 1]
cmp cl, dl
jne 0x49ae5c
mov eax, dword [esp + 0x24]
mov ecx, 2
cmp eax, ecx
mov dword [esp + 0x1c], ecx
jbe 0x49aad7
mov al, byte [ecx + edi]
mov edx, ecx
sub edx, esi
cmp al, byte [edx + edi]
jne 0x49aad3
mov eax, dword [esp + 0x24]
inc ecx
cmp ecx, eax
jb 0x49aabe
mov dword [esp + 0x1c], ecx
mov esi, dword [esp + 0x38]
lea eax, [ecx + ebx]
cmp esi, eax
jae 0x49aafd
sub eax, esi
lea edx, [esi + esi*4]
add esi, eax
lea edx, [ebp + edx*8 + 0x34]
mov dword [esp + 0x38], esi
add edx, 0x28
dec eax
mov dword [edx], 0xfffffff
jne 0x49aaf1
mov eax, dword [esp + 0x18]
mov esi, ecx
test eax, eax
mov eax, 0x800
jne 0x49ab38
mov edx, dword [esp + 0x58]
sub eax, dword [ebp + edx*4 + 0x28430]
mov edx, dword [esp + 0x2c]
mov edx, dword [ebp + edx*4 + 0x283a0]
shr eax, 2
shr edx, 2
mov eax, dword [eax*4 + 0x4eafd8]
add eax, dword [edx*4 + 0x4eafd8]
jmp 0x49abb1
mov edx, dword [esp + 0x2c]
sub eax, dword [ebp + edx*4 + 0x283a0]
shr eax, 2
cmp dword [esp + 0x18], 1
mov eax, dword [eax*4 + 0x4eafd8]
mov dword [esp + 0x28], eax
jne 0x49ab6b
mov edx, dword [ebp + edx*4 + 0x283d0]
shr edx, 2
add eax, dword [edx*4 + 0x4eafd8]
jmp 0x49abb1
mov eax, dword [esp + 0x18]
mov ecx, 0x800
sub ecx, dword [ebp + edx*4 + 0x283d0]
mov edx, dword [ebp + edx*4 + 0x28400]
add eax, 0xfffffffe
sub edx, eax
neg eax
xor edx, eax
shr edx, 2
shr ecx, 2
and edx, 0x1ff
mov ecx, dword [ecx*4 + 0x4eafd8]
mov eax, dword [edx*4 + 0x4eafd8]
add ecx, eax
mov eax, dword [esp + 0x28]
add eax, ecx
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x64]
add eax, edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x28], eax
mov eax, edx
shl eax, 4
add eax, edx
shl eax, 4
mov dword [esp + 0x4c], eax
add eax, ecx
add ecx, ebx
mov dword [esp + 0x54], eax
lea edx, [ebp + eax*4 + 0x2e184]
lea eax, [ecx + ecx*4]
lea eax, [ebp + eax*8 + 0x34]
mov ecx, dword [esp + 0x28]
add ecx, dword [edx]
cmp ecx, dword [eax]
jae 0x49abfd
mov dword [eax], ecx
mov ecx, dword [esp + 0x18]
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov byte [eax - 0xb], 0
mov ecx, dword [esp + 0x1c]
sub edx, 4
dec ecx
sub eax, 0x28
cmp ecx, 2
mov dword [esp + 0x1c], ecx
jae 0x49abe3
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x49ac20
lea edx, [esi + 1]
mov dword [esp + 0x30], edx
mov ecx, dword [ebp + 0x32e78]
mov edx, dword [esp + 0x40]
lea eax, [esi + 1]
add ecx, eax
cmp edx, ecx
jae 0x49ac35
mov ecx, edx
cmp eax, ecx
mov dword [esp + 0x1c], ecx
jae 0x49ac56
mov edx, dword [esp + 0x44]
mov ecx, eax
sub ecx, edx
mov dl, byte [eax + edi]
cmp dl, byte [ecx + edi]
jne 0x49ac56
mov ecx, dword [esp + 0x1c]
inc eax
cmp eax, ecx
jb 0x49ac3d
or ecx, 0xffffffff
sub ecx, esi
add eax, ecx
cmp eax, 2
mov dword [esp + 0x1c], eax
jb 0x49ae5c
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x4c]
add ecx, esi
mov al, byte [edx + 0x4b9b2c]
mov edx, dword [ebp + ecx*4 + 0x2e184]
mov ecx, dword [ebp + 0x33ae0]
mov byte [esp + 0x88], al
mov eax, dword [esp + 0xa4]
mov ebx, dword [esp + 0x88]
add eax, esi
and ebx, 0xff
and eax, ecx
mov ecx, ebx
mov dword [esp + 0x54], edx
shl ecx, 4
add eax, ecx
mov cl, byte [esi + edi]
push ecx
mov ecx, dword [esp + 0x48]
mov edx, dword [ebp + eax*4 + 0x28070]
shr edx, 2
mov eax, dword [edx*4 + 0x4eafd8]
mov edx, dword [ebp + 0x325d4]
mov dword [esp + 0x50], eax
mov eax, esi
sub eax, ecx
mov cl, byte [eax + edi]
xor eax, eax
mov al, byte [edi + esi - 1]
push ecx
mov edi, dword [ebp + 0x325dc]
mov cl, 8
sub cl, dl
push 1
shr eax, cl
mov ecx, dword [esp + 0xb0]
add ecx, esi
and edi, ecx
mov ecx, edx
shl edi, cl
add eax, edi
lea ecx, [eax + eax*2]
mov eax, dword [ebp + 0x325d0]
shl ecx, 0xa
add ecx, eax
call fcn.00498d30
mov edi, dword [esp + 0x4c]
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x28]
add eax, edi
mov edi, dword [ebp + 0x33ae0]
add eax, edx
mov dl, byte [ebx + 0x4b9b14]
add eax, ecx
mov ecx, dword [esp + 0xa4]
mov byte [esp + 0x88], dl
mov ebx, 0x800
lea edx, [esi + ecx + 1]
and edx, edi
mov edi, dword [esp + 0x88]
and edi, 0xff
mov ecx, edi
shl ecx, 4
add ecx, edx
mov dword [esp + 0x4c], ecx
sub ebx, dword [ebp + ecx*4 + 0x28070]
shr ebx, 2
mov ecx, dword [ebx*4 + 0x4eafd8]
mov ebx, 0x800
sub ebx, dword [ebp + edi*4 + 0x28370]
shr ebx, 2
add ecx, dword [ebx*4 + 0x4eafd8]
mov ebx, dword [esp + 0x5c]
add ecx, eax
mov eax, dword [esp + 0x1c]
add eax, esi
lea eax, [eax + ebx + 1]
mov ebx, dword [esp + 0x38]
cmp ebx, eax
mov dword [esp + 0x28], eax
jae 0x49adcd
lea ebx, [ebx + ebx*4]
lea ebx, [ebp + ebx*8 + 0x34]
mov dword [esp + 0x54], ebx
mov ebx, dword [esp + 0x38]
sub eax, ebx
add ebx, eax
mov dword [esp + 0x38], ebx
mov ebx, dword [esp + 0x54]
add ebx, 0x28
dec eax
mov dword [ebx], 0xfffffff
jne 0x49adc1
mov edi, dword [ebp + edi*4 + 0x283a0]
mov ebx, dword [esp + 0x4c]
mov eax, 0x800
sub eax, dword [ebp + ebx*4 + 0x28430]
shr edi, 2
shr eax, 2
mov ebx, dword [edi*4 + 0x4eafd8]
mov edi, edx
mov eax, dword [eax*4 + 0x4eafd8]
shl edi, 4
add edi, edx
mov edx, dword [esp + 0x1c]
shl edi, 4
add edi, edx
add eax, ebx
add eax, dword [ebp + edi*4 + 0x2e184]
add eax, ecx
mov ecx, dword [esp + 0x28]
lea ecx, [ecx + ecx*4 + 5]
mov edx, dword [ebp + ecx*8 + 0xc]
lea ecx, [ebp + ecx*8]
cmp eax, edx
jae 0x49ae54
mov ebx, dword [esp + 0x5c]
mov edi, dword [esp + 0x48]
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x18]
lea edx, [esi + ebx + 1]
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x10], edx
mov byte [ecx + 1], 1
mov byte [ecx + 2], 1
mov dword [ecx + 4], ebx
mov dword [ecx + 8], eax
jmp 0x49ae5c
mov edi, dword [esp + 0x48]
mov ebx, dword [esp + 0x5c]
mov eax, dword [esp + 0x18]
inc eax
cmp eax, 4
mov dword [esp + 0x18], eax
jb 0x49aa88
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x24]
cmp eax, edx
jbe 0x49aeac
xor eax, eax
lea ecx, [ebp + 0x325e4]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x60], eax
cmp edx, dword [ecx]
jbe 0x49ae9a
add eax, 2
mov dword [esp + 0x60], eax
cmp edx, dword [ecx + eax*4]
ja 0x49ae8e
mov dword [ecx + eax*4], edx
mov eax, dword [esp + 0x60]
add eax, 2
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x3c]
cmp eax, dword [esp + 0x30]
jb 0x49a530
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x50]
add eax, ebx
mov edx, dword [ebp + ecx*4 + 0x28370]
shr edx, 2
mov ecx, dword [edx*4 + 0x4eafd8]
add ecx, esi
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x38]
cmp ecx, eax
jae 0x49aefa
sub eax, ecx
lea edx, [ecx + ecx*4]
add ecx, eax
lea edx, [ebp + edx*8 + 0x34]
mov dword [esp + 0x38], ecx
add edx, 0x28
dec eax
mov dword [edx], 0xfffffff
jne 0x49aeee
mov edx, dword [esp + 0x30]
mov esi, dword [ebp + 0x325e4]
lea eax, [ebp + 0x325e4]
xor ecx, ecx
cmp edx, esi
mov dword [esp + 0x58], ecx
jbe 0x49af25
mov esi, dword [eax + 8]
add eax, 8
add ecx, 2
cmp edx, esi
ja 0x49af14
mov dword [esp + 0x58], ecx
mov esi, dword [ebp + ecx*4 + 0x325e8]
lea eax, [ebp + 0x325e4]
cmp esi, 0x20000
mov dword [esp + 0x28], esi
jae 0x49af52
mov eax, esi
xor edx, edx
shr eax, 6
mov dl, byte [eax + 0x4ea3d0]
mov eax, edx
add eax, 0xc
jmp 0x49af7e
cmp esi, 0x8000000
mov eax, esi
jae 0x49af6e
shr eax, 0x10
xor edx, edx
mov dl, byte [eax + 0x4ea3d0]
mov eax, edx
add eax, 0x20
jmp 0x49af7e
shr eax, 0x1a
xor edx, edx
mov dl, byte [eax + 0x4ea3d0]
mov eax, edx
add eax, 0x34
lea edx, [ebp + 0x325e4]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x30]
lea ecx, [edx + ecx*4]
inc eax
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x20]
mov edx, ecx
mov dword [esp + 0x44], eax
shl edx, 4
add edx, ecx
mov ecx, dword [esp + 0x30]
shl edx, 4
add edx, ecx
add ecx, ebx
lea edx, [ebp + edx*4 + 0x29538]
lea ecx, [ecx + ecx*4]
mov dword [esp + 0x30], edx
lea edx, [ebp + ecx*8 + 0x34]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x18]
lea ecx, [eax - 3]
cmp ecx, 4
jb 0x49afd5
mov ecx, 3
cmp esi, 0x80
jae 0x49afeb
shl ecx, 7
add ecx, esi
mov ecx, dword [ebp + ecx*4 + 0x33294]
jmp 0x49b003
shl ecx, 6
add ecx, edx
mov edx, esi
and edx, 0xf
mov ecx, dword [ebp + ecx*4 + 0x32e94]
add ecx, dword [ebp + edx*4 + 0x33a94]
mov edx, dword [esp + 0x50]
add ecx, edx
mov edx, dword [esp + 0x30]
add ecx, dword [edx]
mov edx, dword [esp + 0x1c]
cmp ecx, dword [edx]
mov dword [esp + 0x64], ecx
jae 0x49b02a
mov dword [edx], ecx
lea ecx, [esi + 4]
mov dword [edx + 4], ebx
mov dword [edx + 8], ecx
mov byte [edx - 0xb], 0
mov edx, dword [esp + 0x24]
lea ecx, [eax - 1]
cmp ecx, dword [edx]
jne 0x49b2f9
mov ecx, dword [ebp + 0x32e78]
mov edx, dword [esp + 0x40]
inc esi
add ecx, eax
mov dword [esp + 0x48], esi
cmp edx, ecx
mov esi, eax
jae 0x49b052
mov ecx, edx
cmp eax, ecx
mov dword [esp + 0x20], ecx
jae 0x49b073
mov edx, dword [esp + 0x48]
mov ecx, esi
sub ecx, edx
mov dl, byte [esi + edi]
cmp dl, byte [ecx + edi]
jne 0x49b073
mov ecx, dword [esp + 0x20]
inc esi
cmp esi, ecx
jb 0x49b05a
or edx, 0xffffffff
lea ecx, [eax - 1]
sub edx, ecx
add esi, edx
cmp esi, 2
mov dword [esp + 0x20], esi
jb 0x49b260
mov ecx, dword [esp + 0x2c]
mov esi, dword [ebp + 0x33ae0]
mov dl, byte [ecx + 0x4b9b20]
mov ecx, dword [esp + 0xa4]
mov byte [esp + 0x34], dl
mov ebx, dword [esp + 0x34]
and ebx, 0xff
lea ecx, [ecx + eax - 1]
mov edx, ebx
and esi, ecx
shl edx, 4
add edx, esi
mov dword [esp + 0x54], ecx
mov ecx, dword [ebp + edx*4 + 0x28070]
shr ecx, 2
mov edx, dword [ecx*4 + 0x4eafd8]
mov cl, byte [edi + eax - 1]
mov dword [esp + 0x4c], edx
push ecx
mov ecx, dword [esp + 0x4c]
mov edx, eax
sub edx, ecx
mov cl, byte [edx + edi - 1]
xor edx, edx
mov dl, byte [edi + eax - 2]
push ecx
mov eax, edx
mov dl, byte [ebp + 0x325d4]
mov cl, 8
push 1
sub cl, dl
mov edx, dword [ebp + 0x325dc]
shr eax, cl
mov ecx, dword [esp + 0x60]
and edx, ecx
mov ecx, dword [ebp + 0x325d4]
shl edx, cl
add eax, edx
lea ecx, [eax + eax*2]
mov eax, dword [ebp + 0x325d0]
shl ecx, 0xa
add ecx, eax
call fcn.00498d30
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x64]
add eax, edx
lea edx, [esi + 1]
add eax, ecx
mov cl, byte [ebx + 0x4b9b14]
mov ebx, dword [ebp + 0x33ae0]
mov byte [esp + 0x34], cl
mov ecx, dword [esp + 0x34]
and edx, ebx
and ecx, 0xff
mov ebx, 0x800
mov esi, ecx
mov dword [esp + 0x48], ecx
sub ebx, dword [ebp + ecx*4 + 0x28370]
shl esi, 4
shr ebx, 2
add esi, edx
mov ecx, dword [ebx*4 + 0x4eafd8]
mov ebx, 0x800
sub ebx, dword [ebp + esi*4 + 0x28070]
mov dword [esp + 0x4c], esi
shr ebx, 2
mov esi, dword [ebx*4 + 0x4eafd8]
mov ebx, dword [esp + 0x5c]
add ecx, esi
mov esi, dword [esp + 0x20]
add ecx, eax
mov eax, dword [esp + 0x44]
lea esi, [eax + esi - 1]
lea esi, [esi + ebx + 1]
mov ebx, dword [esp + 0x38]
cmp ebx, esi
mov dword [esp + 0x44], esi
jae 0x49b1d7
lea ebx, [ebx + ebx*4]
lea ebx, [ebp + ebx*8 + 0x34]
mov dword [esp + 0x54], ebx
mov ebx, dword [esp + 0x38]
sub esi, ebx
add ebx, esi
mov dword [esp + 0x38], ebx
mov ebx, dword [esp + 0x54]
add ebx, 0x28
dec esi
mov dword [ebx], 0xfffffff
jne 0x49b1cb
mov ebx, dword [esp + 0x4c]
mov esi, 0x800
sub esi, dword [ebp + ebx*4 + 0x28430]
mov ebx, dword [esp + 0x48]
mov ebx, dword [ebp + ebx*4 + 0x283a0]
shr esi, 2
shr ebx, 2
mov esi, dword [esi*4 + 0x4eafd8]
add esi, dword [ebx*4 + 0x4eafd8]
mov ebx, edx
shl ebx, 4
add ebx, edx
mov edx, dword [esp + 0x20]
shl ebx, 4
add ebx, edx
add esi, dword [ebp + ebx*4 + 0x2e184]
add esi, ecx
mov ecx, dword [esp + 0x44]
lea edx, [ecx + ecx*4 + 5]
lea ecx, [ebp + edx*8]
mov edx, dword [ebp + edx*8 + 0xc]
cmp esi, edx
jae 0x49b2b9
mov ebx, dword [esp + 0x5c]
mov dword [ecx + 0xc], esi
mov dword [ecx + 0x14], 0
mov byte [ecx + 1], 1
lea edx, [eax + ebx]
mov byte [ecx + 2], 1
mov dword [ecx + 0x10], edx
mov edx, dword [esp + 0x28]
add edx, 4
mov dword [ecx + 4], ebx
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x58]
add esi, 8
add ecx, 2
mov dword [esp + 0x24], esi
mov esi, dword [esp + 0x60]
cmp ecx, esi
mov dword [esp + 0x58], ecx
je 0x49a530
mov ecx, dword [esp + 0x24]
mov esi, dword [ecx + 4]
cmp esi, 0x80
mov dword [esp + 0x28], esi
jb 0x49b2fd
cmp esi, 0x20000
jae 0x49b2c3
mov edx, esi
xor ecx, ecx
shr edx, 6
mov cl, byte [edx + 0x4ea3d0]
mov edx, ecx
add edx, 0xc
mov dword [esp + 0x18], edx
jmp 0x49b2fd
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x5c]
jmp 0x49b264
cmp esi, 0x8000000
mov edx, esi
jae 0x49b2e3
shr edx, 0x10
xor ecx, ecx
mov cl, byte [edx + 0x4ea3d0]
mov edx, ecx
add edx, 0x20
mov dword [esp + 0x18], edx
jmp 0x49b2fd
shr edx, 0x1a
xor ecx, ecx
mov cl, byte [edx + 0x4ea3d0]
mov edx, ecx
add edx, 0x34
mov dword [esp + 0x18], edx
jmp 0x49b2fd
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x30]
add ecx, 4
inc eax
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x1c]
add ecx, 0x28
mov dword [esp + 0x44], eax
mov dword [esp + 0x1c], ecx
jmp 0x49afc8
mov edx, dword [esp + 0xa8]
push ebx
push edx
jmp 0x49b348
mov edx, dword [esp + 0x60]
mov dword [ebp + 0x32e7c], eax
mov eax, dword [esp + 0xa8]
push ebx
mov dword [ebp + 0x32e80], edx
mov byte [ebp + 0x32e90], 1
push eax
mov ecx, ebp
call fcn.00499dc0
mov ecx, dword [esp + 0xac]
mov dword [ecx], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret 0xc