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

Disassembly:
sub esp, 0x60
push ebx
push ebp
push esi
push edi
mov edi, eax
mov eax, dword [esp + 0x74]
mov esi, dword [eax + 0x50]
xor ecx, ecx
cmp esi, ecx
je 0x49f661
mov ebx, dword [eax + 0x4c]
cmp ebx, ecx
je 0x49f661
cmp edi, ecx
je 0x49f661
cmp dword [esp + 0x94], ecx
je 0x49f661
add ebx, 0x7c
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
call fcn.00469660
push edi
push 0x54ced4
lea edi, [esp + 0x30]
call fcn.004892f0
add esp, 8
test eax, eax
je 0x49ddfd
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x84]
mov dword [ecx], eax
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov eax, ebx
xor ebp, ebp
call fcn.00488e80
test eax, eax
jle 0x49e5f9
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x49de2b
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp ebp, eax
jb 0x49de30
call fcn.00500ad0
mov edx, dword [ebx + 4]
mov eax, dword [edx + ebp*4]
mov edx, dword [eax]
mov ecx, dword [esp + 0x74]
call fcn.00482630
mov ecx, dword [ebx + 4]
test ecx, ecx
mov dword [esp + 0x10], eax
je 0x49de58
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp ebp, eax
jb 0x49de5d
call fcn.00500ad0
mov esi, dword [ebx + 4]
mov eax, dword [esi + ebp*4]
test eax, eax
je 0x49e5e7
movzx eax, byte [eax]
and eax, 1
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
test eax, eax
je 0x49e5e7
mov edx, dword [esp + 0x74]
mov ecx, dword [edx + 0x4c]
xor eax, eax
cmp dword [ecx + 0x90], eax
mov dword [esp + 0x94], eax
mov dword [esp + 0x14], eax
je 0x49df50
cmp esi, eax
je 0x49deb2
mov eax, dword [ebx + 8]
sub eax, esi
sar eax, 2
cmp ebp, eax
jb 0x49deb7
call fcn.00500ad0
mov edx, dword [ebx + 4]
mov ecx, dword [esp + 0x74]
mov eax, dword [edx + ebp*4]
mov esi, dword [ecx + 0x50]
mov edi, dword [eax + 8]
call fcn.00469660
mov edx, dword [esp + 0x10]
push edx
push edi
lea edi, [esp + 0x30]
call fcn.004892f0
mov ecx, dword [ebx + 4]
add esp, 8
test ecx, ecx
je 0x49def1
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp ebp, eax
jb 0x49def6
call fcn.00500ad0
mov eax, dword [esp + 0x80]
mov ecx, dword [eax]
mov edx, dword [esp + 0x2c]
mov edi, dword [esp + 0x7c]
mov esi, dword [esp + 0x28]
lea eax, [ecx + edx]
mov edx, dword [edi]
mov dword [esp + 0x14], eax
lea eax, [edx + esi]
mov dword [esp + 0x94], eax
mov eax, dword [ebx + 4]
mov eax, dword [eax + ebp*4]
add eax, 0xc
mov dword [eax], edx
mov edx, dword [esp + 0x14]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x94]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0x2c]
add dword [edi], esi
mov dword [esp + 0x94], esi
mov dword [esp + 0x14], eax
jmp 0x49df88
cmp esi, eax
je 0x49df60
mov eax, dword [ebx + 8]
sub eax, esi
sar eax, 2
cmp ebp, eax
jb 0x49df65
call fcn.00500ad0
mov eax, dword [ebx + 4]
mov eax, dword [eax + ebp*4]
mov ecx, dword [esp + 0x80]
mov ecx, dword [ecx]
mov edx, dword [esp + 0x7c]
mov edx, dword [edx]
add eax, 0xc
mov dword [eax], edx
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x74]
mov edx, dword [ecx + 0x4c]
cmp dword [edx + 0x30], 2
jne 0x49e126
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x49dfac
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp ebp, eax
jb 0x49dfb1
call fcn.00500ad0
mov eax, dword [ebx + 4]
mov eax, dword [eax + ebp*4]
add eax, 0x3c
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x74]
mov edx, dword [ecx + 0x50]
mov eax, dword [edx + 0x58]
mov eax, dword [eax + 0x3c]
test eax, eax
mov dword [esp + 0x18], eax
je 0x49e126
mov edi, ebp
mov esi, ebx
call fcn.00472050
mov ecx, dword [eax]
cmp dword [ecx + 0x38], 0
je 0x49e126
call fcn.00472050
mov edx, dword [eax]
mov eax, dword [edx + 0x38]
mov edi, dword [esp + 0x18]
call fcn.00497160
mov esi, eax
test esi, esi
je 0x49e126
xor eax, eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov dword [esp + 0x18], eax
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x84]
mov edi, dword [ecx]
push edx
mov dword [esp + 0x3c], eax
push eax
mov eax, dword [esp + 0x7c]
mov esi, dword [eax + 0x50]
call fcn.00468840
mov ecx, dword [esp + 0x40]
add eax, edi
push eax
push ecx
lea esi, [esp + 0x70]
call fcn.0046e4e0
add esp, 0x10
test eax, eax
je 0x49e126
mov edx, dword [esp + 0x7c]
mov ecx, dword [edx]
mov edx, dword [esp + 0x80]
xor eax, eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
lea eax, [ecx + 3]
mov dword [esp + 0x40], eax
mov eax, dword [edx]
lea esi, [edi + eax*2]
mov eax, dword [esp + 0x64]
sub eax, dword [esp + 0x6c]
add eax, esi
cdq
sub eax, edx
mov edx, dword [esp + 0x68]
sub edx, dword [esp + 0x60]
mov edi, eax
mov eax, dword [esp + 0x6c]
sub eax, dword [esp + 0x64]
lea ecx, [edx + ecx + 3]
add eax, esi
cdq
sub eax, edx
sar edi, 1
sar eax, 1
mov dword [esp + 0x48], ecx
sub ecx, dword [esp + 0x40]
mov dword [esp + 0x44], edi
mov dword [esp + 0x4c], eax
je 0x49e126
sub eax, edi
je 0x49e126
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x7c]
add eax, 3
mov dword [edx], eax
mov eax, dword [esp + 0x94]
lea ecx, [eax + ecx + 6]
mov edi, ebp
mov esi, ebx
mov dword [esp + 0x94], ecx
call fcn.00472050
mov eax, dword [eax]
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
add eax, 0x3c
mov dword [eax], edx
mov edx, dword [esp + 0x48]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x4c]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x49e139
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp ebp, eax
jb 0x49e13e
call fcn.00500ad0
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + ebp*4]
test byte [edx], 8
je 0x49e19e
test ecx, ecx
je 0x49e159
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp ebp, eax
jb 0x49e15e
call fcn.00500ad0
mov esi, dword [ebx + 4]
test esi, esi
je 0x49e171
mov eax, dword [ebx + 8]
sub eax, esi
sar eax, 2
cmp ebp, eax
jb 0x49e176
call fcn.00500ad0
mov ecx, dword [esp + 0x84]
mov edx, dword [ecx]
mov eax, dword [esi + ebp*4]
mov ecx, dword [ebx + 4]
mov ecx, dword [ecx + ebp*4]
push edx
lea edx, [esp + 0x2c]
push edx
mov edx, dword [eax]
mov eax, dword [ecx + 4]
mov ecx, dword [esp + 0x7c]
call fcn.00481e10
jmp 0x49e1da
test ecx, ecx
je 0x49e1ae
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp ebp, eax
jb 0x49e1b3
call fcn.00500ad0
mov eax, dword [ebx + 4]
mov edx, dword [esp + 0x74]
mov ecx, dword [eax + ebp*4]
mov esi, dword [edx + 0x50]
mov edi, dword [ecx + 4]
call fcn.00469660
mov ecx, dword [esp + 0x10]
push ecx
push edi
lea edi, [esp + 0x30]
call fcn.004892f0
add esp, 8
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x49e1ed
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp ebp, eax
jb 0x49e1f2
call fcn.00500ad0
mov edx, dword [esp + 0x80]
mov ecx, dword [edx]
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x7c]
mov edx, dword [edx]
lea esi, [ecx + eax]
mov eax, dword [esp + 0x28]
lea edi, [edx + eax]
mov eax, dword [ebx + 4]
mov eax, dword [eax + ebp*4]
add eax, 0x1c
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x28]
add dword [esp + 0x94], ecx
mov dword [eax], edx
mov dword [eax + 8], edi
mov dword [eax + 0xc], esi
mov eax, dword [ebx + 4]
test eax, eax
je 0x49e241
mov ecx, dword [ebx + 8]
sub ecx, eax
sar ecx, 2
cmp ebp, ecx
jb 0x49e246
call fcn.00500ad0
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + ebp*4]
test dword [edx], 0x2000
je 0x49e266
mov eax, dword [esp + 0x74]
add eax, 0xa8
mov dword [esp + 0x10], eax
jmp 0x49e2fa
test ecx, ecx
je 0x49e276
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp ebp, eax
jb 0x49e27b
call fcn.00500ad0
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + ebp*4]
test dword [edx], 0x40000
je 0x49e298
mov eax, dword [esp + 0x74]
add eax, 0xe8
mov dword [esp + 0x10], eax
jmp 0x49e2fa
mov edi, ebp
mov esi, ebx
call fcn.00472050
mov eax, dword [eax]
test dword [eax], 0x400000
jne 0x49e2ec
call fcn.00472050
mov eax, dword [eax]
test dword [eax], 0x100
jne 0x49e2ec
call fcn.00472050
mov eax, dword [eax]
test dword [eax], 0x1000000
jne 0x49e2dc
call fcn.00472050
mov eax, dword [eax]
test dword [eax], 0x2000000
je 0x49e540
mov ecx, dword [esp + 0x74]
add ecx, 0x168
mov dword [esp + 0x10], ecx
jmp 0x49e2fa
mov edx, dword [esp + 0x74]
add edx, 0x128
mov dword [esp + 0x10], edx
cmp dword [esp + 0x10], 0
je 0x49e540
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x49e318
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp ebp, eax
jb 0x49e31d
call fcn.00500ad0
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + ebp*4]
mov edx, dword [eax + 0x1c]
add eax, 0x1c
test ecx, ecx
mov dword [esp + 0x50], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x54], edx
mov edx, dword [eax + 8]
mov dword [esp + 0x58], edx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x5c], eax
je 0x49e352
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp ebp, eax
jb 0x49e357
call fcn.00500ad0
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + ebp*4]
test byte [edx], 8
je 0x49e3ce
mov edi, ebp
mov esi, ebx
call fcn.00472050
mov eax, dword [eax]
add eax, 4
mov eax, dword [eax]
mov dword [esp + 0x1c], eax
call fcn.00472050
mov dword [esp + 0x18], eax
call fcn.00472050
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov ecx, dword [edx]
mov edx, dword [esp + 0x1c]
push ecx
mov ecx, dword [eax]
mov eax, dword [esp + 0x78]
push edx
add ecx, 0x1c
lea edx, [esp + 0x58]
call fcn.00482220
test eax, eax
jne 0x49e3ce
call fcn.00472050
mov eax, dword [eax]
mov ecx, dword [eax + 0x1c]
add eax, 0x1c
mov dword [esp + 0x50], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x54], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x58], ecx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x5c], edx
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x49e3e1
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp ebp, eax
jb 0x49e3e6
call fcn.00500ad0
mov ecx, dword [ebx + 4]
test ecx, ecx
lea eax, [ecx + ebp*4]
mov dword [esp + 0x1c], eax
je 0x49e400
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp ebp, eax
jb 0x49e405
call fcn.00500ad0
mov eax, dword [ebx + 4]
mov esi, dword [esp + 0x58]
sub esi, dword [esp + 0x50]
test eax, eax
lea ecx, [eax + ebp*4]
mov dword [esp + 0x18], ecx
je 0x49e427
mov ecx, dword [ebx + 8]
sub ecx, eax
sar ecx, 2
cmp ebp, ecx
jb 0x49e42c
call fcn.00500ad0
mov ecx, dword [ebx + 4]
test ecx, ecx
lea edx, [ecx + ebp*4]
mov dword [esp + 0x20], edx
je 0x49e446
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp ebp, eax
jb 0x49e44b
call fcn.00500ad0
mov eax, dword [esp + 0x58]
sub eax, dword [esp + 0x50]
mov edi, dword [ebx + 4]
test edi, edi
mov dword [esp + 0x24], eax
je 0x49e46a
mov eax, dword [ebx + 8]
sub eax, edi
sar eax, 2
cmp ebp, eax
jb 0x49e46f
call fcn.00500ad0
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x20]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov ecx, dword [ecx + 0x1c]
mov edi, dword [edi + ebp*4]
mov eax, dword [esp + 0x20]
mov eax, dword [eax]
mov edi, dword [edi + 0x1c]
add edi, dword [esp + 0x24]
add ecx, esi
mov esi, dword [eax + 0x20]
mov eax, dword [ebx + 4]
mov eax, dword [eax + ebp*4]
add eax, 0x4c
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax], edi
mov dword [eax + 4], esi
mov dword [eax + 0xc], edx
xor eax, eax
cmp dword [ecx + 0x10], eax
mov dword [esp + 0x34], eax
je 0x49e525
mov ecx, dword [ecx + 0x10]
mov eax, dword [ecx + 0xc]
test eax, eax
mov ecx, dword [ecx + 0x10]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
jle 0x49e525
test ecx, ecx
jle 0x49e525
mov edi, ebp
mov esi, ebx
call fcn.00472050
mov eax, dword [eax]
add dword [eax + 0x4c], 1
call fcn.00472050
mov ecx, dword [eax]
mov eax, dword [ecx + 0x4c]
add eax, dword [esp + 0x30]
mov dword [esp + 0x24], eax
call fcn.00472050
mov edx, dword [eax]
mov eax, dword [esp + 0x24]
mov dword [edx + 0x54], eax
call fcn.00472050
mov ecx, dword [eax]
mov eax, dword [ecx + 0x50]
add eax, dword [esp + 0x34]
mov dword [esp + 0x24], eax
call fcn.00472050
mov edx, dword [eax]
mov eax, dword [esp + 0x24]
mov dword [edx + 0x58], eax
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x94]
lea edx, [ecx + eax + 1]
lea ecx, [eax + 1]
mov eax, dword [esp + 0x7c]
add dword [eax], ecx
mov dword [esp + 0x94], edx
mov ecx, dword [esp + 0x88]
mov eax, dword [ecx]
mov edx, dword [esp + 0x94]
cmp eax, edx
jg 0x49e556
mov eax, edx
mov dword [ecx], eax
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x49e56b
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp ebp, eax
jb 0x49e570
call fcn.00500ad0
mov edx, dword [ebx + 4]
mov eax, dword [edx + ebp*4]
mov edi, dword [esp + 0x74]
mov dword [eax + 0x2c], 1
mov esi, dword [edi + 0x50]
call fcn.004698f0
test eax, eax
jne 0x49e5b3
mov esi, dword [edi + 0x50]
call fcn.004687f0
mov edx, dword [esp + 0x90]
mov ecx, eax
add ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x7c]
add dword [eax], ecx
mov eax, dword [esp + 0x80]
mov dword [eax], edx
jmp 0x49e5e7
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x2c]
cmp eax, edi
mov ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0x7c]
mov dword [edx], ecx
jle 0x49e5ce
mov edi, eax
mov eax, dword [esp + 0x74]
mov esi, dword [eax + 0x50]
call fcn.00468840
mov ecx, eax
mov eax, dword [esp + 0x80]
add ecx, edi
add dword [eax], ecx
mov eax, ebx
add ebp, 1
call fcn.00488e80
cmp ebp, eax
jl 0x49de18
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x74]
xor eax, eax
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
xor edi, edi
mov dword [ecx + 0xc], eax
mov esi, dword [edx + 0x50]
mov dword [esp + 0x80], edi
mov dword [esp + 0x7c], edi
mov dword [esp + 0x84], edi
call fcn.004698f0
test eax, eax
jne 0x49e9a9
mov eax, dword [esp + 0x74]
mov eax, dword [eax + 0x4c]
mov ecx, dword [eax + 0x80]
add eax, 0x7c
test ecx, ecx
jne 0x49e64a
xor eax, eax
jmp 0x49e652
mov eax, dword [eax + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jge 0x49e9a9
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x49e66d
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x49e672
call fcn.00500ad0
mov eax, dword [ebx + 4]
mov ecx, dword [eax + edi*4]
test ecx, ecx
je 0x49e9a1
movzx esi, byte [ecx]
and esi, 1
xor ecx, ecx
test esi, esi
sete cl
test ecx, ecx
je 0x49e9a1
cmp dword [esp + 0x84], 0
mov ecx, dword [esp + 0x74]
mov edx, dword [ecx + 0x4c]
jne 0x49e7d6
cmp dword [edx + 0x90], 0
mov dword [esp + 0x84], 1
je 0x49e71a
test eax, eax
je 0x49e6ce
mov ecx, dword [ebx + 8]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jb 0x49e6d3
call fcn.00500ad0
mov esi, dword [ebx + 4]
test esi, esi
je 0x49e6e6
mov eax, dword [ebx + 8]
sub eax, esi
sar eax, 2
cmp edi, eax
jb 0x49e6eb
call fcn.00500ad0
mov eax, dword [ebx + 4]
mov edx, dword [esi + edi*4]
mov ecx, dword [eax + edi*4]
mov eax, dword [edx + 0x10]
cmp eax, dword [ecx + 0x20]
mov esi, ebx
jge 0x49e711
call fcn.00472050
mov ecx, dword [eax]
mov edx, dword [ecx + 0x10]
mov dword [esp + 0x80], edx
jmp 0x49e73f
call fcn.00472050
mov eax, dword [eax]
jmp 0x49e735
test eax, eax
je 0x49e72a
mov ecx, dword [ebx + 8]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jb 0x49e72f
call fcn.00500ad0
mov edx, dword [ebx + 4]
mov eax, dword [edx + edi*4]
mov ecx, dword [eax + 0x20]
mov dword [esp + 0x80], ecx
mov edx, dword [esp + 0x74]
mov eax, dword [edx + 0x4c]
cmp dword [eax + 0x90], 0
mov ecx, dword [ebx + 4]
je 0x49e7ac
test ecx, ecx
je 0x49e762
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x49e767
call fcn.00500ad0
mov esi, dword [ebx + 4]
test esi, esi
je 0x49e77a
mov eax, dword [ebx + 8]
sub eax, esi
sar eax, 2
cmp edi, eax
jb 0x49e77f
call fcn.00500ad0
mov ecx, dword [ebx + 4]
mov eax, dword [esi + edi*4]
mov edx, dword [ecx + edi*4]
mov ecx, dword [eax + 0x18]
cmp ecx, dword [edx + 0x28]
mov esi, ebx
jle 0x49e97d
call fcn.00472050
mov edx, dword [eax]
mov eax, dword [edx + 0x18]
mov dword [esp + 0x7c], eax
add edi, 1
jmp 0x49e632
test ecx, ecx
je 0x49e7bc
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x49e7c1
call fcn.00500ad0
mov eax, dword [ebx + 4]
mov ecx, dword [eax + edi*4]
mov edx, dword [ecx + 0x28]
mov dword [esp + 0x7c], edx
add edi, 1
jmp 0x49e632
cmp dword [edx + 0x90], 0
je 0x49e837
test eax, eax
je 0x49e7ef
mov ecx, dword [ebx + 8]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jb 0x49e7f4
call fcn.00500ad0
mov esi, dword [ebx + 4]
test esi, esi
je 0x49e807
mov eax, dword [ebx + 8]
sub eax, esi
sar eax, 2
cmp edi, eax
jb 0x49e80c
call fcn.00500ad0
mov eax, dword [ebx + 4]
mov edx, dword [esi + edi*4]
mov ecx, dword [eax + edi*4]
mov eax, dword [edx + 0x10]
cmp eax, dword [ecx + 0x20]
mov esi, ebx
jge 0x49e82b
call fcn.00472050
mov ecx, dword [eax]
mov eax, dword [ecx + 0x10]
jmp 0x49e855
call fcn.00472050
mov edx, dword [eax]
mov eax, dword [edx + 0x20]
jmp 0x49e855
test eax, eax
je 0x49e847
mov ecx, dword [ebx + 8]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jb 0x49e84c
call fcn.00500ad0
mov eax, dword [ebx + 4]
mov ecx, dword [eax + edi*4]
mov eax, dword [ecx + 0x20]
cmp dword [esp + 0x80], eax
jl 0x49e8c0
mov edx, dword [esp + 0x74]
mov eax, dword [edx + 0x4c]
cmp dword [eax + 0x90], 0
mov esi, ebx
je 0x49e8af
call fcn.00472050
mov ebp, dword [eax]
add ebp, 0x20
call fcn.00472050
mov ecx, dword [eax]
mov edx, dword [ecx + 0x10]
cmp edx, dword [ebp]
jge 0x49e89c
call fcn.00472050
mov eax, dword [eax]
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x80], ecx
jmp 0x49e8c0
call fcn.00472050
mov edx, dword [eax]
mov eax, dword [edx + 0x20]
mov dword [esp + 0x80], eax
jmp 0x49e8c0
call fcn.00472050
mov ecx, dword [eax]
mov edx, dword [ecx + 0x20]
mov dword [esp + 0x80], edx
mov eax, dword [esp + 0x74]
mov ecx, dword [eax + 0x4c]
cmp dword [ecx + 0x90], 0
mov ecx, dword [ebx + 4]
je 0x49e92b
test ecx, ecx
je 0x49e8e3
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x49e8e8
call fcn.00500ad0
mov esi, dword [ebx + 4]
test esi, esi
je 0x49e8fb
mov eax, dword [ebx + 8]
sub eax, esi
sar eax, 2
cmp edi, eax
jb 0x49e900
call fcn.00500ad0
mov edx, dword [ebx + 4]
mov ecx, dword [esi + edi*4]
mov eax, dword [edx + edi*4]
mov edx, dword [ecx + 0x18]
cmp edx, dword [eax + 0x28]
mov esi, ebx
jle 0x49e91f
call fcn.00472050
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
jmp 0x49e949
call fcn.00472050
mov ecx, dword [eax]
mov eax, dword [ecx + 0x28]
jmp 0x49e949
test ecx, ecx
je 0x49e93b
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x49e940
call fcn.00500ad0
mov edx, dword [ebx + 4]
mov eax, dword [edx + edi*4]
mov eax, dword [eax + 0x28]
cmp dword [esp + 0x7c], eax
jg 0x49e9a1
mov ecx, dword [esp + 0x74]
mov edx, dword [ecx + 0x4c]
cmp dword [edx + 0x90], 0
mov esi, ebx
je 0x49e993
call fcn.00472050
mov ebp, dword [eax]
add ebp, 0x28
call fcn.00472050
mov eax, dword [eax]
mov ecx, dword [eax + 0x18]
cmp ecx, dword [ebp]
jmp 0x49e790
call fcn.00472050
mov ecx, dword [eax]
mov edx, dword [ecx + 0x28]
mov dword [esp + 0x7c], edx
add edi, 1
jmp 0x49e632
call fcn.00472050
mov eax, dword [eax]
mov ecx, dword [eax + 0x28]
mov dword [esp + 0x7c], ecx
add edi, 1
jmp 0x49e632
xor edi, edi
mov dword [esp + 0x94], edi
mov dword [esp + 0x84], edi
mov ebp, dword [esp + 0x74]
mov eax, dword [ebp + 0x4c]
mov ecx, dword [eax + 0x80]
add eax, 0x7c
test ecx, ecx
jne 0x49e9d1
xor eax, eax
jmp 0x49e9d9
mov eax, dword [eax + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jge 0x49f483
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x49e9f4
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x49e9f9
call fcn.00500ad0
mov esi, dword [ebx + 4]
mov eax, dword [esi + edi*4]
test eax, eax
je 0x49f47b
movzx eax, byte [eax]
and eax, 1
xor edx, edx
test eax, eax
sete dl
mov eax, edx
test eax, eax
je 0x49f47b
mov ebp, dword [esp + 0x74]
mov eax, dword [ebp + 0x4c]
cmp dword [eax + 0x90], 0
je 0x49eaa5
test esi, esi
je 0x49ea3e
mov eax, dword [ebx + 8]
sub eax, esi
sar eax, 2
cmp edi, eax
jb 0x49ea43
call fcn.00500ad0
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + edi*4]
mov esi, dword [eax + 0x18]
sub esi, dword [eax + 0x10]
add eax, 0xc
test ecx, ecx
je 0x49ea62
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x49ea67
call fcn.00500ad0
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + edi*4]
mov edx, dword [eax + 0x28]
sub edx, dword [eax + 0x20]
add eax, 0x1c
cmp esi, edx
jle 0x49ea9a
test ecx, ecx
je 0x49ea8a
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x49ea8f
call fcn.00500ad0
mov eax, dword [ebx + 4]
mov ecx, dword [eax + edi*4]
add ecx, 0xc
jmp 0x49eac3
test ecx, ecx
je 0x49eab5
mov eax, dword [ebx + 8]
sub eax, ecx
jmp 0x49eaae
test esi, esi
je 0x49eab5
mov eax, dword [ebx + 8]
sub eax, esi
sar eax, 2
cmp edi, eax
jb 0x49eaba
call fcn.00500ad0
mov eax, dword [ebx + 4]
mov ecx, dword [eax + edi*4]
add ecx, 0x1c
mov esi, dword [ecx + 0xc]
sub esi, dword [ecx + 4]
mov ecx, dword [ebp + 0x4c]
cmp dword [ecx + 0x90], 0
je 0x49eb2d
test eax, eax
je 0x49eae5
mov ecx, dword [ebx + 8]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jb 0x49eaea
call fcn.00500ad0
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + edi*4]
mov ebp, dword [eax + 0x18]
sub ebp, dword [eax + 0x10]
add eax, 0xc
test ecx, ecx
je 0x49eb09
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x49eb0e
call fcn.00500ad0
mov eax, esi
sub eax, ebp
add eax, 1
cdq
sub eax, edx
mov edx, dword [ebx + 4]
sar eax, 1
push eax
mov eax, dword [edx + edi*4]
push 0
add eax, 0xc
push eax
call dword [0x5313ec]
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x49eb40
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x49eb45
call fcn.00500ad0
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + edi*4]
mov ebp, dword [eax + 0x28]
sub ebp, dword [eax + 0x20]
add eax, 0x1c
test ecx, ecx
je 0x49eb64
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x49eb69
call fcn.00500ad0
mov ecx, dword [ebx + 4]
mov eax, esi
sub eax, ebp
add eax, 1
cdq
sub eax, edx
mov edx, dword [ecx + edi*4]
sar eax, 1
push eax
push 0
add edx, 0x1c
push edx
call dword [0x5313ec]
mov eax, dword [esp + 0x74]
mov esi, dword [eax + 0x50]
mov eax, dword [esi + 0x58]
test eax, eax
mov ebp, 2
je 0x49eba9
mov eax, dword [eax + 8]
test eax, eax
je 0x49eba9
push eax
call dword [0x531328]
mov esi, dword [esi + 0x58]
test esi, esi
je 0x49ebc4
mov ebp, dword [esi + 0xb4]
mov esi, dword [esi + 8]
test esi, esi
je 0x49ebc4
push esi
call dword [0x531324]
test ebp, ebp
jne 0x49ed66
mov ecx, dword [esp + 0x74]
mov edx, dword [ecx + 0x4c]
cmp dword [edx + 0x90], ebp
je 0x49ec51
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x49ebee
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x49ebf3
call fcn.00500ad0
mov ecx, dword [ebx + 4]
test ecx, ecx
lea ebp, [ecx + edi*4]
je 0x49ec09
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x49ec0e
call fcn.00500ad0
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + edi*4]
mov esi, dword [eax + 0x18]
sub esi, dword [eax + 0x10]
add eax, 0xc
test ecx, ecx
je 0x49ec2d
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x49ec32
call fcn.00500ad0
mov eax, dword [ebp]
mov ecx, dword [esp + 0x7c]
sub ecx, dword [eax + 0x10]
mov edx, dword [ebx + 4]
mov eax, dword [edx + edi*4]
sub ecx, esi
push ecx
push 0
add eax, 0xc
push eax
call dword [0x5313ec]
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x49ec64
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x49ec69
call fcn.00500ad0
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + edi*4]
test byte [edx], 8
je 0x49ecf3
test ecx, ecx
je 0x49ec88
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x49ec8d
call fcn.00500ad0
mov ecx, dword [ebx + 4]
test ecx, ecx
lea ebp, [ecx + edi*4]
je 0x49eca3
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x49eca8
call fcn.00500ad0
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + edi*4]
mov esi, dword [eax + 0x28]
sub esi, dword [eax + 0x20]
add eax, 0x1c
test ecx, ecx
je 0x49ecc7
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x49eccc
call fcn.00500ad0
mov eax, dword [esp + 0x7c]
mov ecx, dword [ebp]
sub eax, esi
add eax, dword [esp + 0x80]
cdq
sub eax, edx
mov edx, dword [ebx + 4]
sar eax, 1
sub eax, dword [ecx + 0x20]
push eax
mov eax, dword [edx + edi*4]
push 0
add eax, 0x1c
push eax
jmp 0x49ed60
test ecx, ecx
je 0x49ed03
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x49ed08
call fcn.00500ad0
mov ecx, dword [ebx + 4]
test ecx, ecx
lea ebp, [ecx + edi*4]
je 0x49ed1e
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x49ed23
call fcn.00500ad0
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + edi*4]
mov esi, dword [eax + 0x28]
sub esi, dword [eax + 0x20]
add eax, 0x1c
test ecx, ecx
je 0x49ed42
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x49ed47
call fcn.00500ad0
mov ecx, dword [ebp]
mov edx, dword [esp + 0x7c]
sub edx, dword [ecx + 0x20]
mov eax, dword [ebx + 4]
mov ecx, dword [eax + edi*4]
sub edx, esi
push edx
push 0
add ecx, 0x1c
push ecx
call dword [0x5313ec]
cmp dword [esp + 0x84], 0
jne 0x49eeeb
mov edx, dword [esp + 0x74]
mov eax, dword [edx + 0x4c]
cmp dword [eax + 0x90], 0
mov ecx, dword [ebx + 4]
mov dword [esp + 0x84], 1
je 0x49ee16
test ecx, ecx
je 0x49eda6
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x49edab
call fcn.00500ad0
mov ecx, dword [ebx + 4]
test ecx, ecx
lea esi, [ecx + edi*4]
je 0x49edc1
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x49edc6
call fcn.00500ad0
mov ecx, dword [ebx + 4]
mov eax, dword [esi]
mov edx, dword [ecx + edi*4]
mov eax, dword [eax + 0x10]
cmp eax, dword [edx + 0x20]
jge 0x49edf6
test ecx, ecx
je 0x49ede6
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x49edeb
call fcn.00500ad0
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + edi*4]
mov eax, dword [edx + 0x10]
jmp 0x49ee34
test ecx, ecx
je 0x49ee06
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x49ee0b
call fcn.00500ad0
mov eax, dword [ebx + 4]
mov ecx, dword [eax + edi*4]
mov eax, dword [ecx + 0x20]
jmp 0x49ee34
test ecx, ecx
je 0x49ee26
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x49ee2b
call fcn.00500ad0
mov edx, dword [ebx + 4]
mov eax, dword [edx + edi*4]
mov eax, dword [eax + 0x20]
mov ebp, dword [esp + 0x78]
mov ecx, dword [esp + 0x74]
mov dword [ebp + 4], eax
mov edx, dword [ecx + 0x4c]
cmp dword [edx + 0x90], 0
mov ecx, dword [ebx + 4]
je 0x49eec8
test ecx, ecx
je 0x49ee5e
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x49ee63
call fcn.00500ad0
mov ecx, dword [ebx + 4]
test ecx, ecx
lea esi, [ecx + edi*4]
je 0x49ee79
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x49ee7e
call fcn.00500ad0
mov ecx, dword [ebx + 4]
mov edx, dword [esi]
mov eax, dword [ecx + edi*4]
mov edx, dword [edx + 0x18]
cmp edx, dword [eax + 0x28]
jle 0x49eeb1
test ecx, ecx
je 0x49ee9e
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x49eea3
call fcn.00500ad0
mov eax, dword [ebx + 4]
mov ecx, dword [eax + edi*4]
mov eax, dword [ecx + 0x18]
jmp 0x49f1dc
test ecx, ecx
je 0x49f1ce
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jmp 0x49f1cc
test ecx, ecx
je 0x49eed8
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x49eedd
call fcn.00500ad0
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + edi*4]
mov eax, dword [edx + 0x28]
jmp 0x49f1dc
mov eax, dword [esp + 0x74]
mov ecx, dword [eax + 0x4c]
cmp dword [ecx + 0x90], 0
mov ecx, dword [ebx + 4]
je 0x49ef82
test ecx, ecx
je 0x49ef12
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x49ef17
call fcn.00500ad0
mov ecx, dword [ebx + 4]
test ecx, ecx
lea esi, [ecx + edi*4]
je 0x49ef2d
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x49ef32
call fcn.00500ad0
mov ecx, dword [ebx + 4]
mov eax, dword [esi]
mov edx, dword [ecx + edi*4]
mov eax, dword [eax + 0x10]
cmp eax, dword [edx + 0x20]
jge 0x49ef62
test ecx, ecx
je 0x49ef52
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x49ef57
call fcn.00500ad0
mov eax, dword [ebx + 4]
mov ecx, dword [eax + edi*4]
mov ecx, dword [ecx + 0x10]
jmp 0x49efa0
test ecx, ecx
je 0x49ef72
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x49ef77
call fcn.00500ad0
mov eax, dword [ebx + 4]
mov edx, dword [eax + edi*4]
mov ecx, dword [edx + 0x20]
jmp 0x49efa0
test ecx, ecx
je 0x49ef92
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x49ef97
call fcn.00500ad0
mov eax, dword [ebx + 4]
mov ecx, dword [eax + edi*4]
mov ecx, dword [ecx + 0x20]
mov ebp, dword [esp + 0x78]
mov edx, dword [ebp + 4]
cmp edx, ecx
jge 0x49efb2
mov eax, edx
jmp 0x49f064
mov edx, dword [esp + 0x74]
mov ecx, dword [edx + 0x4c]
cmp dword [ecx + 0x90], 0
je 0x49f046
test eax, eax
je 0x49efd6
mov ecx, dword [ebx + 8]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jb 0x49efdb
call fcn.00500ad0
mov ecx, dword [ebx + 4]
test ecx, ecx
lea esi, [ecx + edi*4]
je 0x49eff1
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x49eff6
call fcn.00500ad0
mov ecx, dword [ebx + 4]
mov eax, dword [esi]
mov edx, dword [ecx + edi*4]
mov eax, dword [eax + 0x10]
cmp eax, dword [edx + 0x20]
jge 0x49f026
test ecx, ecx
je 0x49f016
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x49f01b
call fcn.00500ad0
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + edi*4]
mov eax, dword [edx + 0x10]
jmp 0x49f064
test ecx, ecx
je 0x49f036
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x49f03b
call fcn.00500ad0
mov eax, dword [ebx + 4]
mov ecx, dword [eax + edi*4]
mov eax, dword [ecx + 0x20]
jmp 0x49f064
test eax, eax
je 0x49f056
mov ecx, dword [ebx + 8]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jb 0x49f05b
call fcn.00500ad0
mov edx, dword [ebx + 4]
mov eax, dword [edx + edi*4]
mov eax, dword [eax + 0x20]
mov ecx, dword [esp + 0x74]
mov dword [ebp + 4], eax
mov edx, dword [ecx + 0x4c]
cmp dword [edx + 0x90], 0
mov ecx, dword [ebx + 4]
je 0x49f0fe
test ecx, ecx
je 0x49f08e
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x49f093
call fcn.00500ad0
mov ecx, dword [ebx + 4]
test ecx, ecx
lea esi, [ecx + edi*4]
je 0x49f0a9
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x49f0ae
call fcn.00500ad0
mov ecx, dword [ebx + 4]
mov edx, dword [esi]
mov eax, dword [ecx + edi*4]
mov edx, dword [edx + 0x18]
cmp edx, dword [eax + 0x28]
jle 0x49f0de
test ecx, ecx
je 0x49f0ce
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x49f0d3
call fcn.00500ad0
mov eax, dword [ebx + 4]
mov ecx, dword [eax + edi*4]
mov ecx, dword [ecx + 0x18]
jmp 0x49f11c
test ecx, ecx
je 0x49f0ee
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x49f0f3
call fcn.00500ad0
mov eax, dword [ebx + 4]
mov edx, dword [eax + edi*4]
mov ecx, dword [edx + 0x28]
jmp 0x49f11c
test ecx, ecx
je 0x49f10e
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x49f113
call fcn.00500ad0
mov eax, dword [ebx + 4]
mov ecx, dword [eax + edi*4]
mov ecx, dword [ecx + 0x28]
mov edx, dword [ebp + 0xc]
cmp edx, ecx
jle 0x49f12a
mov eax, edx
jmp 0x49f1dc
mov edx, dword [esp + 0x74]
mov ecx, dword [edx + 0x4c]
cmp dword [ecx + 0x90], 0
je 0x49f1be
test eax, eax
je 0x49f14e
mov ecx, dword [ebx + 8]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jb 0x49f153
call fcn.00500ad0
mov ecx, dword [ebx + 4]
test ecx, ecx
lea esi, [ecx + edi*4]
je 0x49f169
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x49f16e
call fcn.00500ad0
mov ecx, dword [ebx + 4]
mov eax, dword [esi]
mov edx, dword [ecx + edi*4]
mov eax, dword [eax + 0x18]
cmp eax, dword [edx + 0x28]
jle 0x49f19e
test ecx, ecx
je 0x49f18e
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x49f193
call fcn.00500ad0
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + edi*4]
mov eax, dword [edx + 0x18]
jmp 0x49f1dc
test ecx, ecx
je 0x49f1ae
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x49f1b3
call fcn.00500ad0
mov eax, dword [ebx + 4]
mov ecx, dword [eax + edi*4]
mov eax, dword [ecx + 0x28]
jmp 0x49f1dc
test eax, eax
je 0x49f1ce
mov ecx, dword [ebx + 8]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jb 0x49f1d3
call fcn.00500ad0
mov edx, dword [ebx + 4]
mov eax, dword [edx + edi*4]
mov eax, dword [eax + 0x28]
mov ecx, dword [esp + 0x74]
mov dword [ebp + 0xc], eax
mov esi, dword [ecx + 0x50]
mov eax, dword [esi + 0x58]
test eax, eax
mov ebp, 2
je 0x49f200
mov eax, dword [eax + 8]
test eax, eax
je 0x49f200
push eax
call dword [0x531328]
mov eax, dword [esi + 0x58]
test eax, eax
je 0x49f21b
mov ebp, dword [eax + 0xb4]
mov eax, dword [eax + 8]
test eax, eax
je 0x49f21b
push eax
call dword [0x531324]
test ebp, ebp
jne 0x49f465
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x49f236
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x49f23b
call fcn.00500ad0
mov eax, dword [ebx + 4]
mov ecx, dword [eax + edi*4]
test ecx, ecx
je 0x49f47b
movzx esi, byte [ecx]
and esi, 1
xor ecx, ecx
test esi, esi
sete cl
test ecx, ecx
je 0x49f47b
cmp dword [esp + 0x94], 0
mov edx, dword [esp + 0x74]
mov ecx, dword [edx + 0x4c]
jne 0x49f34b
cmp dword [ecx + 0x90], 0
mov dword [esp + 0x94], 1
je 0x49f2a7
test eax, eax
je 0x49f297
mov ecx, dword [ebx + 8]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jb 0x49f29c
call fcn.00500ad0
mov edx, dword [ebx + 4]
mov eax, dword [edx + edi*4]
mov eax, dword [eax + 0xc]
jmp 0x49f2c5
test eax, eax
je 0x49f2b7
mov ecx, dword [ebx + 8]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jb 0x49f2bc
call fcn.00500ad0
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + edi*4]
mov eax, dword [edx + 0x1c]
mov ecx, dword [esp + 0x78]
mov dword [ecx], eax
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x49f2de
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x49f2e3
call fcn.00500ad0
mov eax, dword [ebx + 4]
mov ecx, dword [eax + edi*4]
test dword [ecx], 0x3442100
je 0x49f31e
test eax, eax
je 0x49f301
mov ecx, dword [ebx + 8]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jb 0x49f306
call fcn.00500ad0
mov edx, dword [ebx + 4]
mov eax, dword [edx + edi*4]
mov eax, dword [eax + 0x54]
mov ecx, dword [esp + 0x78]
mov dword [ecx + 8], eax
add edi, 1
jmp 0x49e9b9
test eax, eax
je 0x49f32e
mov ecx, dword [ebx + 8]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jb 0x49f333
call fcn.00500ad0
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + edi*4]
mov eax, dword [edx + 0x24]
mov ecx, dword [esp + 0x78]
mov dword [ecx + 8], eax
add edi, 1
jmp 0x49e9b9
cmp dword [ecx + 0x90], 0
je 0x49f374
test eax, eax
je 0x49f364
mov ecx, dword [ebx + 8]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jb 0x49f369
call fcn.00500ad0
mov edx, dword [ebx + 4]
mov eax, dword [edx + edi*4]
mov ecx, dword [eax + 0xc]
jmp 0x49f392
test eax, eax
je 0x49f384
mov ecx, dword [ebx + 8]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jb 0x49f389
call fcn.00500ad0
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + edi*4]
mov ecx, dword [edx + 0x1c]
mov eax, dword [esp + 0x78]
mov eax, dword [eax]
cmp eax, ecx
jl 0x49f3c4
mov ecx, dword [esp + 0x74]
mov edx, dword [ecx + 0x4c]
cmp dword [edx + 0x90], 0
mov esi, ebx
je 0x49f3ba
call fcn.00472050
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
jmp 0x49f3c4
call fcn.00472050
mov ecx, dword [eax]
mov eax, dword [ecx + 0x1c]
mov ebp, dword [esp + 0x78]
mov dword [ebp], eax
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x49f3de
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x49f3e3
call fcn.00500ad0
mov eax, dword [ebx + 4]
mov ecx, dword [eax + edi*4]
test dword [ecx], 0x3442100
je 0x49f42b
test eax, eax
je 0x49f401
mov ecx, dword [ebx + 8]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jb 0x49f406
call fcn.00500ad0
mov edx, dword [ebx + 4]
mov eax, dword [ebp + 8]
mov ecx, dword [edx + edi*4]
cmp eax, dword [ecx + 0x54]
jg 0x49f45a
mov esi, ebx
call fcn.00472050
mov edx, dword [eax]
mov eax, dword [edx + 0x54]
mov dword [ebp + 8], eax
add edi, 1
jmp 0x49e9b9
test eax, eax
je 0x49f43b
mov ecx, dword [ebx + 8]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jb 0x49f440
call fcn.00500ad0
mov ecx, dword [ebx + 4]
mov eax, dword [ebp + 8]
mov edx, dword [ecx + edi*4]
cmp eax, dword [edx + 0x24]
jg 0x49f45a
mov esi, ebx
call fcn.00472050
mov eax, dword [eax]
mov eax, dword [eax + 0x24]
mov dword [ebp + 8], eax
add edi, 1
jmp 0x49e9b9
test edi, edi
jne 0x49f47b
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x88]
mov dword [eax], edi
mov edx, dword [ecx]
mov dword [eax + 8], edx
add edi, 1
jmp 0x49e9b9
mov esi, dword [ebp + 0x50]
mov eax, dword [esi + 0x58]
test eax, eax
mov edi, 2
je 0x49f4a0
mov eax, dword [eax + 8]
test eax, eax
je 0x49f4a0
push eax
call dword [0x531328]
mov eax, dword [esi + 0x58]
test eax, eax
je 0x49f4bb
mov edi, dword [eax + 0xb4]
mov eax, dword [eax + 8]
test eax, eax
je 0x49f4bb
push eax
call dword [0x531324]
cmp edi, 1
jne 0x49f661
cmp dword [ebp + 0x78], 0
je 0x49f661
mov eax, dword [ebp + 0x78]
mov ecx, dword [eax + 0xc]
test ecx, ecx
mov eax, dword [eax + 0x10]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], eax
jle 0x49f661
test eax, eax
jle 0x49f661
xor esi, esi
mov eax, ebx
mov dword [esp + 0x7c], esi
call fcn.00488e80
test eax, eax
jle 0x49f661
jmp 0x49f50a
mov esi, dword [esp + 0x7c]
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x49f51d
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x49f522
call fcn.00500ad0
mov ecx, dword [ebx + 4]
cmp dword [ecx + esi*4], 0
je 0x49f647
test ecx, ecx
je 0x49f541
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp dword [esp + 0x7c], eax
jb 0x49f546
call fcn.00500ad0
mov ecx, dword [ebx + 4]
mov eax, dword [esp + 0x7c]
mov edx, dword [ecx + eax*4]
test dword [edx], 0x800
je 0x49f647
test ecx, ecx
je 0x49f56e
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp dword [esp + 0x7c], eax
jb 0x49f573
call fcn.00500ad0
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0x7c]
mov eax, dword [eax + ecx*4]
mov edx, dword [eax + 0x1c]
mov ebp, dword [eax + 0x20]
mov edi, dword [eax + 0x24]
mov ecx, dword [esp + 0x34]
add eax, 0x1c
mov eax, dword [eax + 0xc]
mov dword [esp + 0x5c], eax
xor eax, eax
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x74]
mov esi, dword [eax + 0x50]
push ecx
push edx
call fcn.00468840
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x38]
sub ecx, ebp
add eax, ecx
push eax
push edx
lea esi, [esp + 0x70]
call fcn.0046e4e0
add esp, 0x10
test eax, eax
je 0x49f647
mov eax, dword [esp + 0x5c]
sub eax, dword [esp + 0x6c]
lea esi, [edi + 0xa]
sub edi, dword [esp + 0x60]
add eax, ebp
add eax, dword [esp + 0x64]
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [esp + 0x68]
lea edi, [edi + eax + 0xa]
mov eax, dword [esp + 0x5c]
sub eax, dword [esp + 0x64]
sar ecx, 1
add eax, ebp
add eax, dword [esp + 0x6c]
cdq
sub eax, edx
mov edx, edi
sar eax, 1
sub edx, esi
je 0x49f647
mov edx, eax
sub edx, ecx
je 0x49f647
mov edx, dword [esp + 0x74]
mov dword [edx + 0x98], 1
mov dword [edx + 0x6c], ecx
mov ecx, dword [esp + 0x78]
mov dword [edx + 0x68], esi
mov dword [edx + 0x70], edi
mov dword [edx + 0x74], eax
mov eax, dword [ecx + 8]
cmp eax, edi
jg 0x49f644
mov eax, edi
mov dword [ecx + 8], eax
mov esi, dword [esp + 0x7c]
add esi, 1
mov eax, ebx
mov dword [esp + 0x7c], esi
call fcn.00488e80
cmp esi, eax
jl 0x49f506
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret 0x24