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

Disassembly:
sub esp, 0xf4
mov eax, dword [esp + 0x10c]
mov edx, dword [esp + 0x110]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x114]
push ebx
mov ebx, dword [esp + 0x120]
mov dword [esp + 0x18], eax
mov al, byte [ecx + 0x3228]
push ebp
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x120]
push esi
push edi
mov edi, dword [esp + 0x10c]
test al, al
mov dword [esp + 0x14], ecx
mov dword [esp + 0x28], edx
mov byte [esp + 0x4c], 0
mov dword [esp + 0x5c], 0
je 0x488a14
mov al, byte [edi + 0x2e4c]
test al, al
je 0x488a14
mov al, byte [ebx + 0x30]
test al, al
je 0x488a14
mov eax, dword [edi + 0x2e54]
mov byte [esp + 0x4c], 1
mov dword [esp + 0x5c], eax
jmp 0x488abd
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x110]
push edx
mov eax, dword [ecx + 0x3378]
lea ecx, [eax + 8]
call fcn.0049be60
mov dl, byte [esp + 0x4c]
lea esi, [edi + 0x2a14]
xor ebp, ebp
mov ecx, esi
test eax, eax
je 0x488a5d
test al, 1
je 0x488a52
cmp dword [ecx - 0x10], 0x16
jne 0x488a52
mov edx, dword [ecx]
mov dword [esp + 0x5c], edx
mov dl, 1
sar eax, 1
inc ebp
add ecx, 0x18
cmp ebp, 0x20
jl 0x488a3c
test dl, dl
mov byte [esp + 0x4c], dl
jne 0x488abd
mov eax, dword [edi + 0x2e00]
test eax, eax
je 0x488abd
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x110]
push ecx
mov eax, dword [eax + 0x3378]
lea ecx, [eax + 8]
call fcn.0049be60
and eax, dword [edi + 0x2e00]
je 0x488abd
mov ecx, esi
xor edx, edx
mov esi, 5
test eax, eax
je 0x488abd
test al, 1
je 0x488ab2
cmp dword [ecx - 0x10], esi
je 0x488ab2
mov ebp, dword [ecx]
mov byte [esp + 0x4c], 1
mov dword [esp + 0x5c], ebp
sar eax, 1
inc edx
add ecx, 0x18
cmp edx, 0x20
jl 0x488a9a
mov eax, dword [edi + 0x2e3c]
test eax, eax
je 0x488ade
mov al, byte [esp + 0x4c]
test al, al
jne 0x488ade
mov al, byte [edi + 0x2da4]
mov byte [esp + 0x1b], 1
test al, al
jne 0x488ae3
mov byte [esp + 0x1b], 0
mov ebp, dword [esp + 0x130]
mov edx, dword [esp + 0x14]
xor esi, esi
mov ecx, dword [edx + 0x3378]
cmp ebp, esi
sete al
mov byte [esp + 0x56], al
mov byte [esp + 0x13], al
mov eax, dword [ecx + 0x4b0]
imul eax, dword [edi + 0x2d74]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x110]
push eax
call fcn.00497ba0
cmp ebp, esi
mov dword [esp + 0x64], eax
jg 0x488b2d
xor eax, eax
jmp 0x488b41
cmp ebp, dword [ebx + 0x58]
jge 0x488b3e
mov eax, dword [ebx + 4]
cmp eax, esi
je 0x488b3e
mov eax, dword [eax + ebp*4]
jmp 0x488b41
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x44]
mov dword [esp + 0x38], eax
mov dword [esp + 0x58], esi
mov dword [esp + 0x44], esi
mov edx, dword [ecx + eax*4]
mov ecx, dword [ebx + 0x58]
cmp ebp, ecx
mov dword [esp + 0x50], edx
jge 0x488ba7
cmp ebp, esi
jg 0x488b68
mov dword [esp + 0x58], esi
jmp 0x488b7f
mov eax, dword [ebx + 4]
cmp eax, esi
je 0x488b78
mov eax, dword [eax + ebp*4]
mov dword [esp + 0x58], eax
jmp 0x488b7f
mov edx, dword [ebx + 0x18]
mov dword [esp + 0x58], edx
lea eax, [ebp + 1]
cmp eax, esi
jg 0x488b8c
mov dword [esp + 0x44], esi
jmp 0x488ba7
cmp eax, ecx
jge 0x488ba0
mov edx, dword [ebx + 4]
cmp edx, esi
je 0x488ba0
mov eax, dword [edx + eax*4]
mov dword [esp + 0x44], eax
jmp 0x488ba7
mov edx, dword [ebx + 0x18]
mov dword [esp + 0x44], edx
mov eax, dword [esp + 0x14]
mov byte [esp + 0x88], 0
test byte [eax + 0x3368], 1
je 0x488bea
lea eax, [ebp + 1]
cmp eax, ecx
jge 0x488bea
cmp eax, esi
jg 0x488bcb
xor eax, eax
jmp 0x488bde
cmp eax, ecx
jge 0x488bdb
mov edx, dword [ebx + 4]
cmp edx, esi
je 0x488bdb
mov eax, dword [edx + eax*4]
jmp 0x488bde
mov eax, dword [ebx + 0x18]
cmp eax, esi
setne dl
mov byte [esp + 0x88], dl
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x108]
mov edx, dword [eax + 0x3374]
test edx, edx
je 0x488d27
cmp ebp, ecx
jge 0x488d27
test ebp, ebp
jg 0x488c13
xor ebp, ebp
jmp 0x488c22
mov eax, dword [ebx + 4]
test eax, eax
je 0x488c1f
mov ebp, dword [eax + ebp*4]
jmp 0x488c22
mov ebp, dword [ebx + 0x18]
test ebp, ebp
setne al
test al, al
je 0x488d27
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x80], eax
mov eax, dword [edi + 0x2d70]
mov ebp, dword [esp + 0x118]
imul eax, edx
mov dword [esp + 0x78], ecx
mov ecx, dword [esp + 0x50]
sub ecx, ecx
mov edx, dword [esi]
add ecx, ebp
add eax, ecx
mov dword [esp + 0x78], ecx
mov dword [esp + 0x80], eax
mov eax, dword [edi + 0xc10]
push eax
mov eax, dword [esp + 0x20]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], eax
mov eax, dword [esp + 0x34]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x38]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x3c]
mov dword [ecx + 0xc], eax
mov ecx, esi
call dword [edx + 0x38]
mov ecx, dword [esp + 0x14]
mov al, 2
test byte [ecx + 0x3368], al
je 0x488d0b
mov edx, ecx
test byte [edx + 0x336c], al
je 0x488cc2
mov eax, dword [esp + 0x80]
mov ecx, dword [edi + 0x2d70]
sub eax, ecx
mov dword [esp + 0x78], eax
jmp 0x488cd5
mov eax, dword [edi + 0x2d70]
mov ecx, dword [esp + 0x78]
add eax, ecx
mov dword [esp + 0x80], eax
mov eax, dword [edi + 0x2da0]
mov edx, dword [esp + 0x78]
push eax
push 0
mov eax, dword [esp + 0x28]
sub esp, 0x10
mov ecx, esp
push esi
mov dword [ecx], edx
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x9c]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x44]
mov dword [ecx + 0xc], eax
mov ecx, dword [esp + 0x30]
call fcn.004885e0
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0x3374]
imul edx, dword [edi + 0x2d70]
add ebp, edx
mov dword [esp + 0x118], ebp
jmp 0x488d2e
mov ebp, dword [esp + 0x118]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x58]
mov dword [esp + 0x2c], eax
mov cl, byte [edx + 0x31d6]
test cl, cl
je 0x489050
lea ecx, [eax*4 + 4]
mov dword [esp + 0x40], ecx
mov ecx, 1
sub ecx, dword [esp + 0x64]
mov dword [esp + 0x6c], ecx
cmp eax, dword [esp + 0x44]
jge 0x489050
mov edx, dword [ebx + 0x3c]
lea ecx, [edx + eax]
mov dl, byte [edx + eax]
cmp dl, byte [ecx + 1]
mov byte [esp + 0x60], dl
jne 0x488dcc
mov ecx, dword [esp + 0x44]
dec ecx
cmp eax, ecx
je 0x488dcc
mov edx, dword [ebx + 0x38]
lea ecx, [edx + eax]
movsx edx, byte [edx + eax]
test edx, edx
jl 0x488d98
cmp edx, 0x20
jl 0x488dcc
movsx ecx, byte [ecx + 1]
test ecx, ecx
jl 0x488da5
cmp ecx, 0x20
jl 0x488dcc
mov edx, dword [ebx + 0x28]
mov ecx, dword [ebx + 0x2c]
cmp edx, ecx
je 0x488dc0
mov ecx, dword [esp + 0x64]
lea ecx, [eax + ecx + 1]
cmp ecx, edx
je 0x488dcc
cmp ecx, dword [ebx + 0x2c]
je 0x488dcc
mov edx, dword [ebx + 0x34]
dec edx
cmp eax, edx
jne 0x48902e
mov eax, dword [esp + 0x38]
mov ecx, dword [ebx + 0x44]
mov edx, dword [esp + 0x50]
shl eax, 2
mov eax, dword [ecx + eax]
sub eax, edx
mov edx, dword [esp + 0x40]
add eax, ebp
mov ecx, dword [ecx + edx]
mov edx, dword [esp + 0x50]
sub ecx, edx
mov dword [esp + 0x1c], eax
add ecx, ebp
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x124]
cmp eax, ecx
jg 0x489016
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x11c]
cmp eax, ecx
jl 0x489016
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x2c]
mov ecx, dword [ebx + 0x28]
and eax, 0xff
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x64]
add eax, edx
cmp eax, ecx
jl 0x488e48
mov edx, dword [ebx + 0x2c]
cmp eax, edx
jge 0x488e48
cmp ecx, edx
mov byte [esp + 0x3c], 1
jne 0x488e4d
mov byte [esp + 0x3c], 0
mov ecx, dword [ebx + 0x4c]
cmp ecx, 0xffffffff
je 0x488e65
cmp eax, ecx
jl 0x488e65
mov ecx, dword [ebx + 0x50]
mov byte [esp + 0x34], 1
cmp eax, ecx
jl 0x488e6a
mov byte [esp + 0x34], 0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x34]
push ebx
push ecx
mov ecx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x68]
push eax
mov eax, dword [esp + 0x5c]
push ecx
push edx
push eax
lea ecx, [esp + 0xa8]
push edi
push ecx
mov ecx, dword [esp + 0x38]
call fcn.00488490
mov edx, dword [ebx + 0x38]
mov ecx, dword [esp + 0x2c]
mov eax, dword [eax]
mov cl, byte [ecx + edx]
cmp cl, 9
jne 0x488ef8
mov cl, byte [esp + 0x1b]
test cl, cl
je 0x488ecb
mov cl, byte [esp + 0x13]
test cl, cl
je 0x488ec5
cmp dword [edi + 0x2e3c], 1
jne 0x488ecb
mov eax, dword [edi + 0x2dac]
mov ecx, dword [esp + 0x1c]
push eax
sub esp, 0x10
mov edx, dword [esi]
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x34]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x38]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x3c]
mov dword [eax + 0xc], ecx
mov ecx, esi
call dword [edx + 0x38]
jmp 0x489016
movsx ecx, cl
test ecx, ecx
jl 0x488f0b
cmp ecx, 0x20
jge 0x488f0b
mov byte [esp + 0x13], 0
jmp 0x488ecb
mov ecx, dword [esp + 0x1c]
push eax
sub esp, 0x10
mov edx, dword [esi]
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x34]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x38]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x3c]
mov dword [eax + 0xc], ecx
mov ecx, esi
call dword [edx + 0x38]
mov eax, dword [edi + 0x2e3c]
test eax, eax
jne 0x488f57
mov al, byte [esp + 0x13]
test al, al
je 0x489016
mov al, byte [edi + 0x2e40]
test al, al
je 0x489016
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x38]
xor ecx, ecx
sub eax, edx
mov dword [esp + 0x68], ecx
mov dword [esp + 0x48], eax
js 0x489016
lea eax, [edx*4]
mov dword [esp + 0x30], eax
jmp 0x488f82
mov edx, dword [esp + 0x38]
mov eax, dword [ebx + 0x38]
add edx, ecx
cmp byte [edx + eax], 0x20
jne 0x488ff5
mov al, byte [esp + 0x1b]
test al, al
je 0x488ffa
mov al, byte [esp + 0x13]
test al, al
je 0x488fa6
cmp dword [edi + 0x2e3c], 1
jne 0x488ffa
mov eax, dword [ebx + 0x44]
mov edx, dword [esp + 0x30]
mov eax, dword [eax + edx]
mov edx, dword [esp + 0x38]
add edx, ecx
mov ecx, dword [ebx + 0x44]
add eax, ebp
mov ecx, dword [ecx + edx*4 + 4]
mov edx, dword [esi]
add ecx, ebp
mov ebp, dword [edi + 0x2dac]
push ebp
sub esp, 0x10
mov ebp, esp
mov dword [ebp], eax
mov eax, dword [esp + 0x34]
mov dword [ebp + 4], eax
mov dword [ebp + 8], ecx
mov ecx, dword [esp + 0x3c]
mov dword [ebp + 0xc], ecx
mov ecx, esi
call dword [edx + 0x38]
mov ebp, dword [esp + 0x118]
mov ecx, dword [esp + 0x68]
jmp 0x488ffa
mov byte [esp + 0x13], 0
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x48]
inc ecx
add edx, 4
cmp ecx, eax
mov dword [esp + 0x68], ecx
mov dword [esp + 0x30], edx
jle 0x488f7e
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x64]
add eax, edx
add eax, ecx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x40]
inc eax
add edx, 4
mov dword [esp + 0x2c], eax
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x14]
mov cl, byte [edx + 0x31d6]
test cl, cl
jne 0x488d60
mov al, byte [edx + 0x31d6]
test al, al
je 0x4890c6
mov ecx, dword [edi + 0x2da0]
mov edx, dword [esp + 0x88]
mov eax, dword [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x50]
push edx
mov edx, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x13c]
push ecx
mov ecx, dword [esp + 0x54]
push edx
mov edx, dword [esp + 0x124]
push eax
push ebp
push ecx
mov ecx, dword [esp + 0x13c]
push edx
push ebx
mov edx, dword [esp + 0x148]
sub esp, 0x10
mov eax, esp
push edi
push esi
mov dword [eax], ecx
mov ecx, dword [esp + 0x164]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x168]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x54]
mov dword [eax + 0xc], edx
call fcn.00488750
mov ecx, dword [esp + 0x130]
mov al, byte [esp + 0x56]
test ecx, ecx
mov byte [esp + 0x13], al
jg 0x4890e3
mov dword [esp + 0x38], 0
jmp 0x4890ff
cmp ecx, dword [ebx + 0x58]
jge 0x4890f8
mov eax, dword [ebx + 4]
test eax, eax
je 0x4890f8
mov ecx, dword [eax + ecx*4]
mov dword [esp + 0x38], ecx
jmp 0x4890ff
mov edx, dword [ebx + 0x18]
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x44]
cmp edx, eax
mov dword [esp + 0x2c], edx
jge 0x489a98
mov eax, dword [esp + 0x64]
lea ecx, [edx + eax]
mov eax, dword [ebx + 0x3c]
add eax, edx
mov dword [esp + 0x34], ecx
mov cl, byte [eax]
cmp cl, byte [eax + 1]
mov byte [esp + 0x60], cl
jne 0x489179
mov ecx, dword [esp + 0x44]
dec ecx
cmp edx, ecx
je 0x489179
mov eax, dword [ebx + 0x38]
add eax, edx
movsx ecx, byte [eax]
test ecx, ecx
jl 0x489148
cmp ecx, 0x20
jl 0x489179
movsx eax, byte [eax + 1]
test eax, eax
jl 0x489155
cmp eax, 0x20
jl 0x489179
mov eax, dword [ebx + 0x28]
mov ecx, dword [ebx + 0x2c]
cmp eax, ecx
je 0x48916d
mov ecx, dword [esp + 0x34]
inc ecx
cmp ecx, eax
je 0x489179
cmp ecx, dword [ebx + 0x2c]
je 0x489179
mov eax, dword [ebx + 0x34]
dec eax
cmp edx, eax
jne 0x489a87
mov ecx, dword [esp + 0x38]
lea eax, [ecx*4]
mov ecx, dword [ebx + 0x44]
mov eax, dword [ecx + eax]
mov ecx, dword [ecx + edx*4 + 4]
sub eax, dword [esp + 0x50]
add eax, ebp
inc edx
mov edx, dword [esp + 0x50]
mov dword [esp + 0x1c], eax
sub ecx, edx
add ecx, ebp
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x124]
cmp eax, ecx
jg 0x489a7a
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x11c]
cmp edx, eax
jl 0x489a7a
mov eax, dword [esp + 0x60]
and eax, 0xff
lea ecx, [eax + eax*4]
shl ecx, 4
add ecx, edi
mov dword [esp + 0x70], ecx
mov edx, dword [ecx + 0x208]
lea ecx, [eax + eax*4 + 0x23]
shl ecx, 4
add ecx, edi
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x48], ecx
mov ecx, dword [ebx + 0x4c]
cmp ecx, 0xffffffff
je 0x489223
cmp edx, ecx
jl 0x489223
mov ecx, dword [esp + 0x14]
cmp edx, dword [ecx + 0x3350]
jge 0x489223
mov cl, byte [edi + 0x2dd8]
test cl, cl
je 0x489223
mov ecx, dword [edi + 0x2de0]
mov dword [esp + 0x3c], ecx
cmp edx, dword [ebx + 0x28]
jl 0x4892f2
mov ecx, dword [ebx + 0x2c]
cmp edx, ecx
jge 0x4892f2
cmp dword [ebx + 0x28], ecx
je 0x4892ee
mov cl, byte [edi + 0x2d78]
mov byte [esp + 0x6c], 1
test cl, cl
je 0x489259
mov edx, dword [edi + 0x2d80]
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x34]
mov ecx, dword [ebx + 0x4c]
cmp ecx, 0xffffffff
je 0x489275
cmp edx, ecx
jl 0x489275
mov ecx, dword [ebx + 0x50]
mov byte [esp + 0x68], 1
cmp edx, ecx
jl 0x48927a
mov byte [esp + 0x68], 0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x68]
push ebx
push ecx
mov ecx, dword [esp + 0x64]
push eax
mov eax, dword [esp + 0x78]
push edx
mov edx, dword [esp + 0x5c]
push eax
push ecx
mov ecx, dword [esp + 0x2c]
push edx
lea eax, [esp + 0x10c]
push edi
push eax
call fcn.00488490
mov ecx, dword [eax]
mov eax, dword [ebx + 0x38]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x40], ecx
mov al, byte [eax + edx]
cmp al, 9
jne 0x4894ac
mov eax, dword [esp + 0x14]
mov cl, byte [eax + 0x31d6]
test cl, cl
jne 0x489328
mov al, byte [esp + 0x1b]
test al, al
je 0x4892fc
mov al, byte [esp + 0x13]
test al, al
je 0x4892e6
cmp dword [edi + 0x2e3c], 1
jne 0x4892fc
mov eax, dword [edi + 0x2dac]
jmp 0x489300
mov edx, dword [esp + 0x34]
mov byte [esp + 0x6c], 0
jmp 0x48925d
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x1c]
push eax
sub esp, 0x10
mov edx, dword [esi]
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x34]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x38]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x3c]
mov dword [eax + 0xc], ecx
mov ecx, esi
call dword [edx + 0x38]
mov eax, dword [edi + 0x2e3c]
test eax, eax
jne 0x489348
mov al, byte [esp + 0x13]
test al, al
je 0x489422
mov al, byte [edi + 0x2e40]
test al, al
je 0x489368
mov al, byte [edi + 0x2d98]
test al, al
je 0x48935c
mov edx, dword [edi + 0x2da0]
mov dword [esp + 0x3c], edx
mov ecx, dword [esp + 0x3c]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x18]
mov al, byte [esp + 0x13]
test al, al
je 0x489422
mov al, byte [edi + 0x2e40]
test al, al
je 0x489422
mov ecx, dword [ebx + 0x44]
mov edx, dword [esp + 0x2c]
mov eax, dword [ecx + edx*4]
cdq
idiv dword [esp + 0x74]
mov edx, dword [esp + 0x2c]
mov ebp, eax
mov eax, dword [esp + 0x74]
imul ebp, eax
inc edx
cmp ebp, dword [ecx + edx*4]
jge 0x489422
mov edx, dword [esp + 0x118]
add edx, ebp
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x2c]
cmp ebp, dword [ecx + edx*4]
jl 0x489409
test ebp, ebp
jle 0x489409
mov edx, dword [ebx + 0x20]
cmp edx, ebp
mov edx, dword [esp + 0x1c]
sete al
push eax
mov eax, dword [esp + 0x24]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [esp + 0x38]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x3c]
mov dword [ecx + 8], edx
mov edx, dword [edi + 0x2d64]
mov dword [ecx + 0xc], eax
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x128]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
push eax
push esi
call fcn.00488560
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
add ecx, eax
add ebp, eax
mov dword [esp + 0x30], ecx
mov ecx, dword [ebx + 0x44]
inc edx
cmp ebp, dword [ecx + edx*4]
jl 0x4893b1
mov eax, dword [edi + 0x2e3c]
test eax, eax
je 0x48998e
mov cl, byte [esp + 0x13]
test cl, cl
je 0x489441
cmp eax, 1
jne 0x48998e
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
add ecx, 4
lea ebp, [eax + 1]
mov eax, dword [edi + 0x2d6c]
mov dword [esp + 0xc4], ecx
mov ecx, dword [esp + 0x28]
dec edx
sub ecx, eax
mov eax, dword [edi + 0x2d64]
mov dword [esp + 0xc8], edx
cdq
sub eax, edx
mov edx, dword [esp + 0x20]
sar eax, 1
add eax, edx
mov edx, dword [esp + 0xc4]
push eax
sub esp, 0x10
mov eax, esp
push esi
mov dword [eax], ebp
mov dword [eax + 4], edx
mov edx, dword [esp + 0xe0]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
call fcn.00487b70
add esp, 0x18
jmp 0x48998e
movsx ecx, al
test ecx, ecx
jl 0x4896a3
cmp ecx, 0x20
jge 0x4896a3
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x13], 0
cmp dword [ecx + 0x31c8], 0x20
jge 0x489643
push eax
call fcn.00484e10
mov edx, dword [esp + 0x18]
mov dword [esp + 0x4c], eax
add esp, 4
mov al, byte [edx + 0x31d6]
test al, al
jne 0x48951d
mov ecx, dword [esp + 0x40]
mov eax, dword [esi]
push ecx
mov ecx, dword [esp + 0x20]
sub esp, 0x10
mov edx, esp
mov dword [edx], ecx
mov ecx, dword [esp + 0x34]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x38]
mov dword [edx + 8], ecx
mov ecx, dword [esp + 0x3c]
mov dword [edx + 0xc], ecx
mov ecx, esi
call dword [eax + 0x38]
mov edx, dword [esi]
lea ebx, [edi + 0xd70]
push ebx
mov ecx, esi
call dword [edx + 0x68]
mov ebp, eax
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x60]
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0xb4], ecx
mov ecx, dword [edi + 0x2d68]
mov edx, dword [esp + 0x28]
sub eax, ebp
mov ebp, ecx
mov dword [esp + 0xb0], ebx
sub ebp, eax
mov eax, dword [esp + 0x20]
add ebp, eax
mov dword [esp + 0xbc], edx
lea eax, [ecx + eax + 1]
inc ebx
mov dword [esp + 0xbc], eax
dec eax
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0x3c]
push eax
lea ecx, [ebp + 1]
mov dword [esp + 0xa8], ebp
sub esp, 0x10
mov dword [esp + 0xb8], ecx
mov eax, dword [esp + 0xb8]
mov ecx, esp
mov edx, dword [esi]
mov dword [ecx], ebx
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x38]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0xc0]
mov dword [ecx + 0xc], eax
mov ecx, esi
call dword [edx + 0x38]
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x40]
mov dword [esp + 0x78], ebx
inc ebx
push ecx
mov dword [esp + 0x7c], ebx
mov ebx, dword [esp + 0x4c]
dec eax
push edx
mov dword [esp + 0x84], ebp
mov ebp, dword [esi]
push ebx
mov dword [esp + 0x8c], eax
call fcn.004180b0
add esp, 4
mov edx, dword [esp + 0x80]
push eax
mov eax, dword [edi + 0x2d68]
push ebx
mov ebx, dword [esp + 0x30]
add eax, ebx
push eax
lea eax, [edi + 0xd70]
push eax
mov eax, dword [esp + 0x94]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [esp + 0xa8]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0xe4]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ecx, esi
call dword [ebp + 0x4c]
mov ebx, dword [esp + 0x12c]
jmp 0x48998e
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x1c]
mov edx, dword [esi]
mov byte [esp + 0x57], 0
mov cl, byte [eax + 0x31c8]
mov eax, dword [esp + 0x3c]
mov byte [esp + 0x56], cl
mov ecx, dword [esp + 0x40]
push eax
push ecx
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x5e]
push 1
push eax
mov eax, dword [edi + 0x2d68]
add eax, ecx
push eax
lea eax, [edi + 0xd70]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ebp
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x4c]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x50]
mov dword [eax + 0xc], ecx
mov ecx, esi
call dword [edx + 0x48]
jmp 0x48998e
mov edx, dword [esp + 0x70]
mov al, byte [edx + 0x22c]
test al, al
je 0x489768
mov eax, dword [esp + 0x14]
mov edx, dword [esi]
mov cl, byte [eax + 0x31d6]
test cl, cl
je 0x489715
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x3c]
sub ecx, eax
inc ecx
push ecx
mov ecx, dword [ebx + 0x38]
add ecx, eax
mov eax, dword [edi + 0x2d68]
push ecx
mov ecx, dword [esp + 0x2c]
add eax, ecx
mov ecx, dword [esp + 0x54]
push eax
push ecx
mov ecx, dword [esp + 0x30]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x44]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x48]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x4c]
mov dword [eax + 0xc], ecx
mov ecx, esi
call dword [edx + 0x50]
jmp 0x489768
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
push eax
mov eax, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x34]
sub ecx, eax
inc ecx
push ecx
mov ecx, dword [ebx + 0x38]
add ecx, eax
mov eax, dword [edi + 0x2d68]
push ecx
mov ecx, dword [esp + 0x30]
add eax, ecx
mov ecx, dword [esp + 0x58]
push eax
push ecx
mov ecx, dword [esp + 0x34]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x48]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x4c]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x50]
mov dword [eax + 0xc], ecx
mov ecx, esi
call dword [edx + 0x48]
mov eax, dword [edi + 0x2e3c]
test eax, eax
jne 0x48978c
mov al, byte [esp + 0x13]
test al, al
je 0x48998e
mov al, byte [edi + 0x2e40]
test al, al
je 0x48998e
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x38]
sub ecx, eax
mov dword [esp + 0x40], 0
mov dword [esp + 0x48], ecx
js 0x48998e
lea ecx, [eax*4]
mov dword [esp + 0x30], ecx
jmp 0x4897b9
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x40]
add edx, eax
mov eax, dword [ebx + 0x38]
cmp byte [edx + eax], 0x20
jne 0x489969
mov eax, dword [edi + 0x2e3c]
test eax, eax
je 0x4898f9
mov cl, byte [edi + 0x2d98]
test cl, cl
je 0x4897ee
mov ecx, dword [edi + 0x2da0]
mov dword [esp + 0x3c], ecx
mov cl, byte [esp + 0x13]
test cl, cl
je 0x4897ff
cmp eax, 1
jne 0x4898f9
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x38]
mov eax, dword [ebx + 0x44]
add edx, ecx
mov ecx, dword [eax + edx*4 + 4]
mov edx, dword [esp + 0x30]
mov eax, dword [eax + edx]
mov dword [esp + 0x8c], eax
add eax, ecx
cdq
sub eax, edx
mov ebp, eax
mov eax, dword [esp + 0x14]
sar ebp, 1
mov dl, byte [eax + 0x31d6]
test dl, dl
jne 0x489894
mov al, byte [esp + 0x1b]
test al, al
je 0x489894
mov al, byte [esp + 0x13]
test al, al
je 0x48984e
cmp dword [edi + 0x2e3c], 1
jne 0x489894
mov edx, dword [esp + 0x118]
mov eax, dword [esp + 0x8c]
add ecx, edx
add eax, edx
mov dword [esp + 0xfc], ecx
mov ecx, dword [edi + 0x2dac]
push ecx
mov edx, dword [esi]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], eax
mov eax, dword [esp + 0x34]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x110]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x3c]
mov dword [ecx + 0xc], eax
mov ecx, esi
call dword [edx + 0x38]
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x118]
sub ebp, eax
mov eax, dword [edi + 0x2d64]
add ebp, edx
cdq
lea ecx, [ebp + 1]
sub eax, edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0xd8], ecx
mov ecx, dword [esp + 0x3c]
push ecx
sub esp, 0x10
mov ecx, esp
sar eax, 1
add eax, edx
mov dword [ecx], ebp
lea edx, [eax + 1]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0xec]
mov dword [esp + 0xf0], edx
mov edx, dword [esi]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0xf0]
mov dword [ecx + 0xc], eax
mov ecx, esi
call dword [edx + 0x38]
mov ebp, dword [esp + 0x118]
mov al, byte [esp + 0x13]
test al, al
je 0x48996e
mov al, byte [edi + 0x2e40]
test al, al
je 0x48996e
mov ecx, dword [ebx + 0x44]
mov edx, dword [esp + 0x30]
mov ecx, dword [edx + ecx]
test ecx, ecx
jle 0x48996e
mov eax, ecx
cdq
idiv dword [esp + 0x74]
test edx, edx
jne 0x48996e
cmp dword [ebx + 0x20], ecx
sete al
push eax
mov eax, dword [esp + 0x20]
sub esp, 0x10
add ecx, ebp
mov edx, esp
push ecx
mov ecx, dword [edi + 0x2d64]
mov dword [edx], eax
mov eax, dword [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x30]
mov dword [edx + 4], eax
mov eax, dword [esp + 0x40]
mov dword [edx + 8], eax
mov eax, dword [esp + 0x44]
mov dword [edx + 0xc], eax
mov edx, dword [esp + 0x130]
push edx
push esi
call fcn.00488560
jmp 0x48996e
mov byte [esp + 0x13], 0
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x48]
inc eax
add edx, 4
cmp eax, ecx
mov dword [esp + 0x40], eax
mov dword [esp + 0x30], edx
jle 0x4897b5
mov eax, dword [ebx + 0x4c]
cmp eax, 0xffffffff
je 0x489a0f
mov cl, byte [edi + 0x2df0]
test cl, cl
je 0x489a0f
mov ecx, dword [esp + 0x34]
cmp ecx, eax
jl 0x489a0f
cmp ecx, dword [ebx + 0x50]
jge 0x489a0f
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x9c], edx
mov edx, dword [edi + 0x2d68]
mov dword [esp + 0x94], eax
mov ecx, dword [esp + 0x1c]
lea eax, [edx + eax + 1]
lea edx, [eax + 1]
mov dword [esp + 0x9c], edx
mov dl, byte [edi + 0x2dd8]
test dl, dl
mov edx, dword [esi]
je 0x4899ef
mov ebp, dword [edi + 0x2de0]
jmp 0x4899f3
mov ebp, dword [esp + 0x3c]
push ebp
sub esp, 0x10
mov ebp, esp
mov dword [ebp], ecx
mov dword [ebp + 4], eax
mov eax, dword [esp + 0x38]
mov dword [ebp + 8], eax
mov eax, dword [esp + 0xb0]
jmp 0x489a6b
mov ecx, dword [esp + 0x70]
mov al, byte [ecx + 0x225]
test al, al
je 0x489a73
mov ebp, dword [esp + 0x3c]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push ebp
mov dword [esp + 0xf0], edx
mov edx, dword [edi + 0x2d68]
sub esp, 0x10
mov ebp, esp
mov dword [esp + 0xf8], eax
lea eax, [edx + eax + 1]
mov dword [ebp], ecx
lea edx, [eax + 1]
mov dword [ebp + 4], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x100], edx
mov edx, dword [esi]
mov dword [ebp + 8], eax
mov eax, dword [esp + 0x100]
mov ecx, esi
mov dword [ebp + 0xc], eax
call dword [edx + 0x38]
mov ebp, dword [esp + 0x118]
mov ecx, dword [esp + 0x2c]
mov edx, ecx
lea eax, [ecx + 1]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x44]
inc edx
cmp edx, eax
mov dword [esp + 0x2c], edx
jl 0x489113
mov edx, dword [esp + 0x14]
mov eax, 1
mov ecx, dword [edx + 0x3378]
mov ecx, dword [ecx + 0x498]
shl eax, cl
cmp eax, 0x100
mov dword [esp + 0x30], eax
jge 0x489bc8
lea edx, [edi + 0x2d04]
mov dword [esp + 0x60], edx
mov ecx, dword [esp + 0x58]
or eax, 0xffffffff
mov edx, ecx
mov dword [esp + 0x48], eax
cmp edx, dword [esp + 0x44]
mov dword [esp + 0x34], ecx
jg 0x489ba8
test eax, eax
jge 0x489b0e
cmp ecx, dword [esp + 0x44]
jge 0x489b06
mov edx, dword [ebx + 0x40]
movsx ecx, byte [edx + ecx]
mov edx, dword [esp + 0x30]
test edx, ecx
mov ecx, dword [esp + 0x34]
je 0x489b06
mov eax, ecx
mov dword [esp + 0x48], eax
test eax, eax
jl 0x489b97
cmp ecx, dword [esp + 0x44]
jge 0x489b23
mov edx, dword [ebx + 0x40]
movsx ecx, byte [edx + ecx]
mov edx, dword [esp + 0x30]
test edx, ecx
jne 0x489b93
mov ecx, dword [ebx + 0x44]
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x50]
mov eax, dword [ecx + eax*4]
sub eax, edx
mov edx, dword [esp + 0x48]
add eax, ebp
mov ecx, dword [ecx + edx*4]
mov edx, dword [esp + 0x50]
sub ecx, edx
mov edx, dword [edi + 0x2d68]
add ecx, ebp
mov dword [esp + 0x98], eax
mov dword [esp + 0x90], ecx
mov ecx, dword [esp + 0x120]
add ecx, edx
lea edx, [esp + 0x11c]
mov dword [esp + 0x94], ecx
add ecx, 3
lea eax, [esp + 0x90]
push edx
mov dword [esp + 0xa0], ecx
mov ecx, dword [esp + 0x64]
push eax
push esi
call fcn.004dea40
or eax, 0xffffffff
mov dword [esp + 0x48], eax
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x44]
inc ecx
cmp ecx, edx
mov dword [esp + 0x34], ecx
jle 0x489ae3
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x60]
shl eax, 1
add edx, 0xc
cmp eax, 0x100
mov dword [esp + 0x30], eax
mov dword [esp + 0x60], edx
jl 0x489ac8
mov ecx, dword [esp + 0x14]
mov al, byte [ecx + 0x31d6]
test al, al
jne 0x489c42
mov edx, dword [edi + 0x2da0]
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x5c]
push edx
mov edx, dword [esp + 0x50]
push eax
mov eax, dword [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x13c]
push edx
mov edx, dword [esp + 0x54]
push eax
mov eax, dword [esp + 0x124]
push ecx
push ebp
push edx
mov edx, dword [esp + 0x13c]
push eax
push ebx
mov eax, dword [esp + 0x148]
sub esp, 0x10
mov ecx, esp
push edi
push esi
mov dword [ecx], edx
mov edx, dword [esp + 0x164]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x168]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ecx, dword [esp + 0x54]
call fcn.00488750
cmp dword [edi + 0x2e60], 1
jne 0x489c87
mov ecx, dword [esp + 0x14]
mov ebx, dword [edi + 0x2e5c]
push ebx
mov edx, dword [esi]
mov eax, dword [ecx + 0x32c0]
sub esp, 0x10
imul eax, dword [edi + 0x2d74]
add eax, ebp
mov ebx, esp
lea ecx, [eax + 1]
mov dword [ebx], eax
mov eax, dword [esp + 0x34]
mov dword [ebx + 4], eax
mov dword [ebx + 8], ecx
mov ecx, dword [esp + 0x3c]
mov dword [ebx + 0xc], ecx
mov ecx, esi
call dword [edx + 0x38]
cmp dword [edi + 0x2e6c], 1
jne 0x489cd4
mov edi, dword [edi + 0x2e74]
mov edx, dword [esp + 0x120]
mov eax, dword [esp + 0x11c]
push edi
sub esp, 0x10
mov ecx, dword [esp + 0x138]
mov dword [esp + 0x10c], edx
mov edx, dword [esp + 0x13c]
mov edi, esp
mov ebp, dword [esi]
lea ebx, [edx - 1]
mov dword [edi], eax
mov dword [edi + 4], ebx
mov dword [edi + 8], ecx
mov ecx, esi
mov dword [edi + 0xc], edx
call dword [ebp + 0x38]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret 0x2c