Function at 0x50d760
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x10c
push ebx
mov ebx, dword [esp + 0x114]
push ebp
mov ebp, dword [ebx + 8]
push esi
push edi
mov edi, dword [ebx]
mov dword [esp + 0x40], 1
mov dword [esp + 0x84], 0
mov dword [esp + 0x34], edi
test ebp, ebp
jne 0x50d7ab
cmp dword [ebx + 0x74], ebp
jne 0x50d7a0
test byte [edi + 0x44], 8
jne 0x50d7a0
mov byte [ebx + 0x17], 1
push ebx
call fcn.004cbbb0
add esp, 4
mov ebp, eax
mov esi, dword [esp + 0x124]
test esi, esi
je 0x50f992
cmp byte [edi + 0x49], 0
jne 0x50f992
cmp dword [ebx + 0x24], 0
jne 0x50f992
push 0
push 0
push 0
push 0x15
mov eax, ebx
call fcn.004d7c90
add esp, 0x10
test eax, eax
jne 0x50f992
push 0x30
push eax
lea eax, [esp + 0xb8]
push eax
call fcn.00585e50
mov ecx, dword [esp + 0x134]
add esp, 0xc
cmp byte [ecx], 8
ja 0x50d81e
mov eax, dword [esi + 0x30]
push edi
call fcn.004c7020
add esp, 4
and dword [esi + 8], 0xfffffffe
mov dword [esi + 0x30], 0
push 0
push esi
push ebx
call fcn.004fd5b0
add esp, 0xc
cmp dword [ebx + 0x24], 0
jne 0x50f7eb
mov edx, edi
cmp byte [edx + 0x49], 0
jne 0x50f7eb
mov eax, dword [esp + 0x128]
cmp byte [eax], 9
jne 0x50d857
push ebx
mov eax, esi
call fcn.004dc120
add esp, 4
mov ecx, esi
push ecx
mov edi, ebx
call fcn.004fe180
add esp, 4
test eax, eax
jne 0x50f7eb
mov edi, esi
mov eax, dword [edi + 8]
mov esi, dword [edi + 0x20]
mov edx, dword [edi + 0x30]
shr eax, 3
and eax, 1
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], eax
mov dword [esp + 0x88], edx
mov dword [esp + 0x20], eax
cmp dword [edi + 0x34], eax
jne 0x50d9f6
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
cmp eax, dword [esi]
jge 0x50d9f6
lea eax, [eax + eax*8]
test byte [esi + eax*8 + 0x2c], 8
mov ecx, dword [esi + eax*8 + 0x1c]
mov edx, dword [esi + eax*8 + 0x18]
lea esi, [esi + eax*8 + 8]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x28], edx
je 0x50d941
mov edx, dword [esi + 0x2c]
mov eax, dword [edi + 0x24]
call fcn.004c18d0
test eax, eax
je 0x50d941
mov ecx, dword [esp + 0x34]
mov eax, 0x2000
test word [ecx + 0x44], ax
jne 0x50d941
mov edx, dword [esi + 0x2c]
and byte [esi + 0x24], 0xd7
mov eax, dword [edi + 0x24]
push edx
push eax
call fcn.004b85c0
add esp, 8
cmp dword [esp + 0x30], 0
je 0x50d9e4
mov ecx, dword [esp + 0x28]
movsx edx, word [ecx + 0x2a]
mov eax, dword [esp + 0x30]
mov ecx, dword [eax]
cmp edx, dword [ecx]
jne 0x50da2a
test byte [eax + 8], 8
jne 0x50d9e4
mov edx, eax
cmp dword [edx + 0x30], 0
je 0x50d991
cmp dword [esp + 0x20], 0
jne 0x50d991
test dword [edi + 8], 0x40000
je 0x50d991
mov eax, dword [esp + 0x1c]
cmp dword [eax], 1
je 0x50d9e4
mov ecx, eax
test byte [ecx + 0x74], 0xa
jne 0x50d9e4
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebx
mov eax, edi
call fcn.004dca80
add esp, 0xc
test eax, eax
je 0x50d9b2
mov dword [esp + 0x20], 0xffffffff
mov edx, dword [esp + 0x34]
cmp byte [edx + 0x49], 0
mov ecx, dword [edi + 0x20]
mov dword [esp + 0x1c], ecx
jne 0x50f7eb
mov eax, dword [esp + 0x128]
cmp byte [eax], 8
mov edi, dword [esp + 0x124]
jbe 0x50d9e4
mov ecx, dword [edi + 0x30]
mov dword [esp + 0x88], ecx
inc dword [esp + 0x20]
cmp dword [edi + 0x34], 0
je 0x50d8e1
mov esi, dword [esp + 0x1c]
cmp dword [edi + 0x34], 0
je 0x50da53
mov ecx, dword [esp + 0x128]
push ecx
push edi
push ebx
call fcn.004fc380
add esp, 0xc
cmp dword [edi + 0x38], 0
mov esi, eax
jne 0x50da1d
mov edx, ebx
call fcn.004bfc70
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
mov edx, dword [esp + 0x30]
mov eax, dword [edx]
mov ecx, dword [eax]
mov eax, dword [esp + 0x28]
mov edx, dword [eax]
movsx eax, word [eax + 0x2a]
push ecx
push edx
push eax
push str.expected__d_columns_for__s_but_got__d
mov esi, ebx
call fcn.004d3340
add esp, 0x10
jmp 0x50f7eb
cmp dword [esi], 1
jle 0x50da74
mov eax, dword [esp + 0x34]
mov edx, 0x8000
test word [eax + 0x44], dx
jne 0x50da74
push ebx
call fcn.004f0f00
mov esi, dword [esp + 0x20]
add esp, 4
xor eax, eax
cmp dword [esi], eax
mov dword [esp + 0x20], eax
jle 0x50dd47
jmp 0x50da88
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
lea ecx, [eax + eax*8]
mov eax, dword [edx + ecx*8 + 0x40]
or eax, dword [edx + ecx*8 + 0x44]
lea edi, [edx + ecx*8 + 8]
jne 0x50dab6
mov ecx, dword [edi + 4]
mov edx, dword [edi + 8]
push ecx
push 0x5d3001
push edx
push 0x14
mov eax, ebx
call fcn.004d7c90
add esp, 0x10
mov esi, dword [edi + 0x14]
test esi, esi
je 0x50dd2b
mov eax, dword [edi + 0x18]
test eax, eax
je 0x50dae9
test byte [edi + 0x28], 0x10
jne 0x50dd2b
push 0
push eax
mov eax, dword [edi + 0x1c]
push eax
push 0xc
push ebp
call fcn.004c5570
add esp, 0x14
jmp 0x50dd2b
mov eax, dword [esp + 0x124]
call fcn.004b6070
mov edx, dword [esp + 0x34]
add dword [ebx + 0xcc], eax
mov ecx, 0x1000
test word [edx + 0x44], cx
jne 0x50db2e
movzx eax, byte [edi + 0x24]
mov ecx, dword [edi + 0x2c]
mov edx, dword [esp + 0x124]
shr eax, 5
and eax, 1
push eax
mov eax, dword [edx + 0x24]
push ecx
push eax
push esi
push ebx
call fcn.004dd0b0
add esp, 0x14
cmp dword [esp + 0x20], 0
mov ecx, dword [ebx + 0xec]
mov edx, dword [edi + 8]
mov dword [esp + 0x2c], ecx
mov dword [ebx + 0xec], edx
jne 0x50dc03
mov eax, dword [esp + 0x1c]
cmp dword [eax], 1
je 0x50db5f
test byte [eax + 0x74], 0xa
je 0x50dc03
mov eax, dword [ebp + 0x88]
inc dword [ebx + 0x2c]
mov ecx, dword [ebx + 0x2c]
inc eax
push eax
push 0
push ecx
push 0xd
push ebp
mov dword [esp + 0x3c], eax
mov dword [edi + 0x1c], ecx
call fcn.004c5570
mov eax, dword [esp + 0x3c]
mov ecx, dword [edi + 0x1c]
mov dword [edi + 0x18], eax
xor eax, eax
mov byte [esp + 0x7c], 0xd
mov dword [esp + 0x80], ecx
mov dword [esp + 0x8c], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov edx, dword [esi + 0x14]
push edx
push str.CO_ROUTINE__u
push 1
push ebx
call fcn.004d4e20
lea eax, [esp + 0x8c]
push eax
push esi
push ebx
call fcn.0050d760
mov dx, word [esi + 6]
mov ecx, dword [edi + 0x10]
mov word [ecx + 0x2c], dx
mov eax, dword [esp + 0xa0]
or dword [edi + 0x28], 0x10
mov dword [edi + 0x20], eax
mov eax, dword [edi + 0x1c]
add esp, 0x30
mov esi, ebp
call fcn.004c57e0
mov eax, dword [esp + 0x28]
dec eax
mov edx, ebp
call fcn.004bfd80
jmp 0x50dcf6
inc dword [ebx + 0x2c]
mov eax, dword [ebx + 0x2c]
push 0
push eax
push 0
push 0x46
push ebp
mov dword [esp + 0x38], 0
mov dword [edi + 0x1c], eax
call fcn.004c5570
mov dword [esp + 0x78], eax
inc eax
add esp, 0x14
test byte [edi + 0x28], 8
mov dword [edi + 0x18], eax
jne 0x50dc47
push 0
push 0
push 0
push 0x11
push ebp
call fcn.004c5570
add esp, 0x14
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x1c]
call fcn.004dd8d0
mov dword [esp + 0x28], eax
test eax, eax
je 0x50dc80
mov ecx, eax
mov edx, dword [ecx + 0x2c]
mov eax, dword [edi + 0x2c]
push 0
push edx
push eax
push 0x6f
push ebp
call fcn.004c5570
mov ecx, dword [esp + 0x3c]
mov edx, dword [ecx + 0x14]
mov ax, word [edx + 6]
add esp, 0x14
mov word [esi + 6], ax
jmp 0x50dcba
mov ecx, dword [edi + 0x2c]
xor eax, eax
mov byte [esp + 0x68], 0xc
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x78], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov edx, dword [esi + 0x14]
push edx
push str.MATERIALIZE__u
push 1
push ebx
call fcn.004d4e20
lea eax, [esp + 0x78]
push eax
push esi
push ebx
call fcn.0050d760
add esp, 0x1c
cmp dword [esp + 0x24], 0
mov ecx, dword [edi + 0x10]
mov dx, word [esi + 6]
mov word [ecx + 0x2c], dx
je 0x50dcd7
mov eax, dword [esp + 0x24]
mov edx, ebp
call fcn.004bfd80
mov edi, dword [edi + 0x1c]
push 0
push 0
push edi
push 0x42
push ebp
call fcn.004c5570
mov edx, eax
mov eax, dword [esp + 0x78]
push ebp
call fcn.004bfcf0
add esp, 0x18
mov eax, dword [esp + 0x34]
mov dword [ebx + 0x1c], 0
mov byte [ebx + 0x13], 0
cmp byte [eax + 0x49], 0
jne 0x50f7eb
mov eax, dword [esp + 0x124]
call fcn.004b6070
mov ecx, dword [esp + 0x2c]
sub dword [ebx + 0xcc], eax
mov dword [ebx + 0xec], ecx
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
inc eax
cmp eax, dword [edx]
mov dword [esp + 0x20], eax
jl 0x50da84
mov edi, dword [esp + 0x124]
mov eax, dword [edi]
mov ecx, dword [edi + 0x24]
mov edx, dword [edi + 0x28]
mov esi, dword [esp + 0x88]
mov dword [esp + 0x48], eax
mov eax, dword [edi + 0x2c]
mov dword [esp + 0x24], ecx
mov ecx, dword [edi + 8]
mov dword [esp + 0x28], eax
mov al, byte [edi + 8]
and al, 1
and cl, 9
mov dword [esp + 0x14], edx
mov byte [esp + 0x68], al
cmp cl, 1
jne 0x50ddae
mov eax, dword [esp + 0x48]
push 0xffffffffffffffff
push esi
call fcn.004b6620
add esp, 8
test eax, eax
jne 0x50ddae
mov edx, dword [esp + 0x48]
and dword [edi + 8], 0xfffffffe
push eax
mov eax, dword [esp + 0x38]
push edx
push eax
call fcn.004c6bf0
add esp, 0xc
mov dword [edi + 0x28], eax
mov dword [esp + 0x14], eax
test esi, esi
je 0x50de65
mov ecx, dword [esp + 0x48]
mov edx, dword [ecx]
push 0
push esi
push ebx
call fcn.004ef7c0
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x28]
lea edx, [eax + 1]
mov dword [ebx + 0x28], edx
mov edx, dword [esp + 0x54]
mov ecx, dword [esi]
mov edx, dword [edx]
push 0
lea ecx, [ecx + edx + 1]
push ecx
push eax
push 0x71
push ebp
mov dword [esp + 0xb0], eax
call fcn.004c5570
mov ecx, dword [ebp]
add esp, 0x20
cmp byte [ecx + 0x49], 0
mov esi, eax
je 0x50de16
mov eax, dword [esp + 0x10]
push 0xfffffffffffffff7
call fcn.004bfdb0
add esp, 4
mov dword [esp + 0x9c], esi
jmp 0x50de70
test esi, esi
jge 0x50de21
mov eax, dword [ebp + 0x88]
dec eax
mov ecx, dword [ebp + 0x58]
lea eax, [eax + eax*4]
cmp byte [ecx + eax*4 + 1], 0
lea ecx, [ecx + eax*4]
je 0x50de4d
mov edx, dword [esp + 0x10]
push edx
push ebp
mov eax, 0xfffffff7
call fcn.004bff40
add esp, 8
mov dword [esp + 0x9c], esi
jmp 0x50de70
mov eax, dword [esp + 0x10]
test eax, eax
je 0x50de5c
mov dword [ecx + 0x10], eax
mov byte [ecx + 1], 0xf7
mov dword [esp + 0x9c], esi
jmp 0x50de70
mov dword [esp + 0x9c], 0xffffffff
mov eax, dword [esp + 0x128]
cmp byte [eax], 0xc
jne 0x50de94
mov ecx, dword [esp + 0x48]
mov edx, dword [ecx]
mov eax, dword [eax + 4]
push 0
push edx
push eax
push 0x71
push ebp
call fcn.004c5570
add esp, 0x14
mov eax, ebp
call fcn.004c5810
test dword [edi + 8], 0x4000
mov dword [esp + 0x64], eax
jne 0x50deb1
mov ecx, 0x140
mov word [edi + 6], cx
mov edx, dword [esp + 0x64]
mov edi, dword [esp + 0x124]
push edx
push edi
mov esi, ebx
call fcn.004cd3d0
add esp, 8
cmp dword [edi + 0xc], 0
jne 0x50deec
mov eax, dword [esp + 0x9c]
test eax, eax
jl 0x50deec
push ebp
mov dl, 0x72
call fcn.004bfcc0
add esp, 4
or byte [esp + 0xa8], 1
test byte [edi + 8], 1
je 0x50df99
mov eax, dword [ebx + 0x28]
mov esi, eax
inc eax
mov dword [ebx + 0x28], eax
mov eax, edi
mov ecx, dword [eax]
push 0
push ecx
push ebx
xor edx, edx
mov dword [esp + 0x78], esi
call fcn.004ef7c0
push 0
push 0
push esi
push 0x71
push ebp
mov edi, eax
call fcn.004c5570
mov ecx, dword [ebp]
add esp, 0x20
cmp byte [ecx + 0x49], 0
mov esi, eax
je 0x50df3d
push 0xfffffffffffffff7
mov eax, edi
call fcn.004bfdb0
add esp, 4
jmp 0x50df74
test esi, esi
jge 0x50df48
mov eax, dword [ebp + 0x88]
dec eax
lea edx, [eax + eax*4]
mov eax, dword [ebp + 0x58]
cmp byte [eax + edx*4 + 1], 0
lea ecx, [eax + edx*4]
je 0x50df69
push edi
push ebp
mov eax, 0xfffffff7
call fcn.004bff40
add esp, 8
jmp 0x50df74
test edi, edi
je 0x50df74
mov dword [ecx + 0x10], edi
mov byte [ecx + 1], 0xf7
mov eax, dword [ebp + 0x88]
mov dword [esp + 0x70], esi
test eax, eax
jle 0x50df92
mov edx, dword [ebp + 0x58]
lea ecx, [eax + eax*4]
mov eax, 8
mov word [edx + ecx*4 - 0x12], ax
mov byte [esp + 0x69], 3
jmp 0x50df9e
mov byte [esp + 0x69], 0
mov esi, dword [esp + 0x14]
xor ecx, ecx
cmp dword [esp + 0x18], ecx
jne 0x50e1ac
cmp esi, ecx
jne 0x50e1ac
movzx edx, byte [esp + 0x68]
mov eax, dword [esp + 0x124]
mov si, word [eax + 8]
mov eax, dword [eax + 0x44]
neg edx
sbb edx, edx
mov edi, 0x4000
and si, di
and edx, 0x100
or dx, si
movzx esi, dx
mov dword [esp + 0x28], eax
cmp eax, ecx
je 0x50dff4
push eax
mov edi, ebx
call fcn.004f56f0
add esp, 4
mov edi, dword [esp + 0x124]
movsx eax, word [edi + 6]
mov ecx, dword [edi]
mov edx, dword [esp + 0x88]
push eax
mov eax, dword [esp + 0x28]
push esi
push ecx
mov ecx, dword [esp + 0x28]
push edx
push eax
push ecx
push ebx
call fcn.0050a010
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x50f7eb
movzx eax, word [esi + 0x48]
cmp ax, word [edi + 6]
jge 0x50e037
mov word [edi + 6], ax
cmp byte [esp + 0x68], 0
je 0x50e049
mov al, byte [esi + 0x33]
test al, al
je 0x50e049
mov byte [esp + 0x69], al
mov edx, dword [esp + 0x88]
test edx, edx
je 0x50e098
cmp byte [esi + 0x34], 0
movsx ecx, byte [esi + 0x2f]
mov dword [esp + 0x8c], ecx
jne 0x50e06a
mov eax, dword [esi + 0x20]
jmp 0x50e07b
movzx eax, byte [esi + 0x2e]
lea eax, [eax + eax*4]
shl eax, 4
mov eax, dword [eax + esi + 0x2b0]
mov dword [esp + 0xa4], eax
cmp ecx, dword [edx]
jne 0x50e098
mov dword [esp + 0x88], 0
mov edx, dword [esp + 0x88]
mov eax, dword [esp + 0x9c]
test eax, eax
jl 0x50e0ae
test edx, edx
jne 0x50e0ae
mov edx, ebp
call fcn.004bfed0
cmp dword [esp + 0x28], 0
je 0x50e173
mov eax, ebp
call fcn.004c5810
mov dword [esp + 0x28], eax
mov eax, ebp
call fcn.004c5810
mov dword [esp + 0x18], eax
mov eax, ebp
call fcn.004c5810
inc dword [ebx + 0x2c]
mov edi, dword [ebx + 0x2c]
mov edx, dword [esp + 0x124]
push esi
mov esi, dword [esp + 0x2c]
push ebx
mov dword [esp + 0x34], eax
call fcn.004f7460
mov esi, dword [esp + 0x34]
push 0
push esi
push 0
push 0xb
push ebp
call fcn.004c5570
mov edx, dword [esp + 0x44]
mov ecx, ebp
call fcn.004b3740
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x144]
push esi
push ecx
push edx
mov edx, dword [esp + 0x14c]
lea eax, [esp + 0x90]
push eax
lea ecx, [esp + 0xb4]
push ecx
push 0xffffffffffffffff
push edx
mov edx, ebx
mov dword [esp + 0xdc], 0
call fcn.004fb420
mov edx, dword [esp + 0x50]
mov ecx, ebp
call fcn.004b3740
push 0
push 0
push edi
push 0x42
push ebp
call fcn.004c5570
add esp, 0x4c
mov edx, esi
mov ecx, ebp
call fcn.004b3740
xor edi, edi
jmp 0x50f73b
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x20]
mov edx, dword [esp + 0x128]
push eax
push ecx
push edx
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x98]
push ecx
mov edx, edi
push 0xffffffffffffffff
push edx
mov edx, ebx
call fcn.004fb420
push esi
call fcn.004ca5a0
add esp, 0x20
xor edi, edi
jmp 0x50f73b
mov edx, dword [esp + 0x124]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x2c], ecx
cmp esi, ecx
je 0x50e205
mov ecx, dword [edx]
mov eax, dword [ecx]
test eax, eax
jle 0x50e1dd
add ecx, 0x1a
mov edi, edi
xor edi, edi
mov word [ecx], di
dec eax
add ecx, 0x18
test eax, eax
jg 0x50e1d0
mov eax, dword [esi]
test eax, eax
jle 0x50e1f3
lea ecx, [esi + 0x1a]
xor edi, edi
mov word [ecx], di
dec eax
add ecx, 0x18
test eax, eax
jg 0x50e1e6
cmp word [edx + 6], 0x42
jle 0x50e20b
mov eax, 0x42
mov word [edx + 6], ax
jmp 0x50e20b
xor ecx, ecx
mov word [edx + 6], cx
mov eax, dword [esp + 0x88]
push 0xffffffffffffffff
push esi
call fcn.004b6620
add esp, 8
test eax, eax
jne 0x50e229
mov dword [esp + 0x2c], 1
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x3c]
lea edx, [ecx + 1]
mov dword [eax + 0x3c], edx
lea edx, [ecx - 1]
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], ecx
test ecx, edx
jne 0x50e272
mov eax, ecx
lea ecx, [eax*8 + 4]
mov eax, dword [esp + 0x10]
mov edi, dword [eax + 0x40]
mov esi, dword [eax]
push 0
push ecx
call fcn.004c3800
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
mov dword [edx + 0x40], eax
add esp, 8
mov eax, edx
mov eax, dword [eax + 0x40]
test eax, eax
je 0x50e280
mov dword [eax + ecx*4], 0xffffffff
mov edx, dword [ebx + 0x2c]
or eax, 0xffffffff
sub eax, ecx
mov dword [esp + 0x44], eax
xor eax, eax
mov dword [esp + 0xe0], eax
mov dword [esp + 0xe4], eax
mov dword [esp + 0xe8], eax
mov dword [esp + 0xec], eax
mov dword [esp + 0xf0], eax
mov dword [esp + 0xf4], eax
mov dword [esp + 0xf8], eax
mov dword [esp + 0xfc], eax
mov eax, dword [esp + 0x1c]
inc edx
lea ecx, [esp + 0xb0]
mov dword [esp + 0xe0], ebx
mov dword [esp + 0xe4], eax
mov dword [esp + 0xe8], ecx
mov dword [esp + 0xc0], edx
test esi, esi
je 0x50e2fd
mov eax, dword [esi]
mov dword [esp + 0xbc], eax
jmp 0x50e308
mov dword [esp + 0xbc], 0
mov ecx, dword [esp + 0x48]
push ecx
lea edx, [esp + 0xe4]
push edx
mov dword [esp + 0xd0], esi
call fcn.004d7060
mov eax, dword [esp + 0x90]
push eax
lea ecx, [esp + 0xec]
push ecx
call fcn.004d7060
mov edi, dword [esp + 0x38]
add esp, 0x10
test edi, edi
je 0x50e3a9
test esi, esi
je 0x50e35e
mov esi, dword [esp + 0x124]
push ebx
mov ecx, esi
call fcn.004f16c0
mov edx, dword [esi + 0x24]
add esp, 4
mov dword [esp + 0x24], edx
lea ecx, [esp + 0x100]
lea eax, [esp + 0xe0]
push edi
push ecx
mov dword [esp + 0x10c], 0x4d6db0
mov dword [esp + 0x110], 0x4b6870
mov dword [esp + 0x114], 0x4b6880
mov dword [esp + 0x118], 0
mov dword [esp + 0x120], eax
call fcn.004c1270
add esp, 8
mov eax, dword [esp + 0x124]
cmp dword [eax + 0x28], 0
mov edx, dword [esp + 0xd0]
mov ecx, dword [esp + 0xdc]
mov dword [esp + 0xd4], edx
jne 0x50e401
cmp dword [eax + 0x2c], 0
jne 0x50e401
cmp ecx, 1
jne 0x50e401
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0xd8]
lea eax, [esp + 0x84]
push eax
mov eax, dword [edx]
push ecx
call fcn.004c9390
mov ecx, dword [esp + 0xe4]
add esp, 8
mov byte [esp + 0x3b], al
jmp 0x50e406
mov byte [esp + 0x3b], 0
xor esi, esi
test ecx, ecx
jle 0x50e453
xor edi, edi
mov edi, edi
mov eax, dword [esp + 0xd8]
or word [esp + 0xf8], 8
mov ecx, dword [eax + edi]
mov edx, dword [ecx + 0x14]
push edx
lea eax, [esp + 0xe4]
push eax
call fcn.004d7060
mov ecx, 0xfff7
and word [esp + 0x100], cx
mov ecx, dword [esp + 0xe4]
inc esi
add esp, 8
add edi, 0x10
cmp esi, ecx
jl 0x50e410
mov edx, dword [ebx + 0x2c]
mov eax, dword [esp + 0x34]
mov dword [esp + 0xc4], edx
cmp byte [eax + 0x49], 0
jne 0x50f7d2
mov edx, dword [esp + 0x14]
test edx, edx
je 0x50f2b2
mov eax, dword [ebx + 0x28]
push 0
push edx
mov edx, dword [esp + 0xd8]
mov dword [esp + 0xbc], eax
inc eax
push ebx
mov dword [ebx + 0x28], eax
call fcn.004ef7c0
mov ecx, dword [esp + 0xc8]
mov edx, dword [esp + 0xc0]
push 0
push ecx
push edx
mov esi, eax
push 0x72
push ebp
mov dword [esp + 0x80], esi
call fcn.004c5570
mov ecx, dword [ebp]
add esp, 0x20
cmp byte [ecx + 0x49], 0
mov dword [esp + 0x80], eax
je 0x50e4d9
push 0xfffffffffffffff7
mov eax, esi
call fcn.004bfdb0
add esp, 4
jmp 0x50e510
test eax, eax
jge 0x50e4e4
mov eax, dword [ebp + 0x88]
dec eax
mov ecx, dword [ebp + 0x58]
lea eax, [eax + eax*4]
cmp byte [ecx + eax*4 + 1], 0
lea ecx, [ecx + eax*4]
je 0x50e505
push esi
push ebp
mov eax, 0xfffffff7
call fcn.004bff40
add esp, 8
jmp 0x50e510
test esi, esi
je 0x50e510
mov dword [ecx + 0x10], esi
mov byte [ecx + 1], 0xf7
mov eax, dword [ebx + 0x2c]
inc eax
mov dword [esp + 0x58], eax
inc eax
mov dword [esp + 0x54], eax
inc eax
mov dword [ebx + 0x2c], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 0x3c]
lea edx, [eax + 1]
mov dword [ecx + 0x3c], edx
lea edx, [eax - 1]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], eax
test eax, edx
jne 0x50e564
lea ecx, [eax*8 + 4]
mov eax, dword [esp + 0x10]
mov edi, dword [eax + 0x40]
mov esi, dword [eax]
push 0
push ecx
call fcn.004c3800
mov edx, dword [esp + 0x18]
mov dword [edx + 0x40], eax
mov eax, dword [esp + 0x20]
add esp, 8
mov ecx, edx
mov ecx, dword [ecx + 0x40]
test ecx, ecx
je 0x50e572
mov dword [ecx + eax*4], 0xffffffff
inc dword [ebx + 0x2c]
or ecx, 0xffffffff
sub ecx, eax
mov eax, dword [ebx + 0x2c]
mov dword [esp + 0x4c], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x30], eax
mov eax, dword [ecx + 0x3c]
lea edx, [eax + 1]
mov dword [ecx + 0x3c], edx
lea edx, [eax - 1]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], eax
test eax, edx
jne 0x50e5c8
lea ecx, [eax*8 + 4]
mov eax, dword [esp + 0x10]
mov edi, dword [eax + 0x40]
mov esi, dword [eax]
push 0
push ecx
call fcn.004c3800
mov edx, dword [esp + 0x18]
mov dword [edx + 0x40], eax
mov eax, dword [esp + 0x20]
add esp, 8
mov ecx, edx
mov ecx, dword [ecx + 0x40]
test ecx, ecx
je 0x50e5d6
mov dword [ecx + eax*4], 0xffffffff
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
or esi, 0xffffffff
sub esi, eax
mov eax, dword [ebx + 0x2c]
lea edi, [eax + 1]
add eax, edx
lea edx, [eax + 1]
push 0
mov dword [esp + 0x54], edx
mov edx, dword [esp + 0x58]
push edx
mov dword [ebx + 0x2c], eax
mov ecx, dword [ecx]
push 0
add ecx, eax
push 0x46
push ebp
mov dword [esp + 0x2c], esi
mov dword [esp + 0x24], edi
mov dword [ebx + 0x2c], ecx
call fcn.004c5570
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
lea edx, [ecx + edi - 1]
push edx
push edi
push 0
push 0x49
push ebp
call fcn.004c5570
mov eax, dword [esp + 0x58]
push 0
push esi
push eax
push 0xc
push ebp
call fcn.004c5570
mov ecx, dword [esp + 0x68]
mov eax, dword [esp + 0x50]
neg ecx
sbb ecx, ecx
and ecx, 0x200
or cx, 0x40
push 0
movzx edx, cx
mov ecx, dword [esp + 0x64]
push edx
mov edx, dword [esp + 0x60]
push 0
push eax
push ecx
push edx
push ebx
call fcn.0050a010
add esp, 0x58
mov dword [esp + 0x24], eax
test eax, eax
je 0x50f7d2
movsx ecx, byte [eax + 0x2f]
mov esi, dword [esp + 0x14]
cmp ecx, dword [esi]
jne 0x50e694
mov edi, dword [esp + 0x5c]
mov dword [esp + 0x40], 0
jmp 0x50e9d4
cmp byte [esp + 0x68], 0
je 0x50e6ad
mov edx, dword [esp + 0x124]
test byte [edx + 8], 1
mov eax, str.DISTINCT
je 0x50e6b2
mov eax, str.GROUP_BY
push eax
push str.USE_TEMP_B_TREE_FOR__s
push 0
push ebx
call fcn.004d4e20
mov edi, dword [esi]
mov edx, dword [esp + 0xe0]
add esp, 0x10
mov dword [esp + 0x40], 1
mov eax, edi
mov dword [esp + 0x3c], edi
mov ecx, edi
test edx, edx
jle 0x50e702
mov esi, dword [esp + 0xcc]
add esi, 0xc
lea ebx, [ebx]
cmp dword [esi], ecx
jl 0x50e6f6
inc eax
inc ecx
add esi, 0x18
sub edx, 1
jne 0x50e6f0
mov dword [esp + 0x3c], eax
cmp eax, 1
jne 0x50e727
mov al, byte [ebx + 0x13]
test al, al
jne 0x50e716
inc dword [ebx + 0x2c]
mov edx, dword [ebx + 0x2c]
jmp 0x50e749
dec al
mov byte [ebx + 0x13], al
movzx eax, al
mov edx, dword [ebx + eax*4 + 0x90]
jmp 0x50e749
mov ecx, dword [ebx + 0x1c]
cmp eax, ecx
mov edx, dword [ebx + 0x20]
jg 0x50e73e
lea esi, [eax + edx]
sub ecx, eax
mov dword [ebx + 0x20], esi
mov dword [ebx + 0x1c], ecx
jmp 0x50e749
mov ecx, dword [ebx + 0x2c]
add eax, ecx
lea edx, [ecx + 1]
mov dword [ebx + 0x2c], eax
mov eax, dword [esp + 0x14]
push 0
push 0
push edx
push ebx
mov dword [esp + 0x2c], edx
call fcn.004ee8a0
add esp, 0x10
cmp dword [esp + 0xd0], 0
mov dword [esp + 0x20], 0
jle 0x50e7bf
mov ecx, dword [esp + 0xcc]
xor esi, esi
lea ebx, [ebx]
cmp dword [ecx + esi + 0xc], edi
jl 0x50e7aa
mov edx, dword [esp + 0x1c]
mov eax, dword [ecx + esi + 4]
add edx, edi
push edx
push eax
mov eax, dword [ecx + esi + 8]
mov ecx, dword [ecx + esi]
push ebp
call fcn.004ee5c0
mov ecx, dword [esp + 0xd8]
add esp, 0xc
inc edi
mov eax, dword [esp + 0x20]
inc eax
add esi, 0x18
cmp eax, dword [esp + 0xd0]
mov dword [esp + 0x20], eax
jl 0x50e780
mov al, byte [ebx + 0x13]
test al, al
jne 0x50e7ce
inc dword [ebx + 0x2c]
mov edi, dword [ebx + 0x2c]
jmp 0x50e7dd
dec al
movzx ecx, al
mov byte [ebx + 0x13], al
mov edi, dword [ebx + ecx*4 + 0x90]
mov eax, dword [ebp + 0x88]
mov edx, dword [ebp + 0xc]
cmp dword [edx + 0x30], eax
jg 0x50e804
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x1c]
push edi
push eax
push ecx
push 0x66
mov esi, ebp
call fcn.004c5530
add esp, 0x10
jmp 0x50e83b
mov ecx, dword [ebp + 0x58]
lea edx, [eax + 1]
mov dword [ebp + 0x88], edx
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x1c]
xor edx, edx
mov word [eax + 2], dx
mov edx, dword [esp + 0x3c]
mov byte [eax], 0x66
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], 0
mov byte [eax + 1], 0
mov eax, dword [ebp + 0x88]
mov edx, dword [ebp + 0xc]
cmp dword [edx + 0x30], eax
mov ecx, dword [esp + 0xb4]
jg 0x50e865
push 0
push edi
push ecx
push 0x84
mov esi, ebp
call fcn.004c5530
add esp, 0x10
jmp 0x50e891
lea edx, [eax + 1]
mov dword [ebp + 0x88], edx
mov edx, dword [ebp + 0x58]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
xor edx, edx
mov dword [eax + 4], ecx
xor ecx, ecx
mov byte [eax], 0x84
mov word [eax + 2], dx
mov dword [eax + 8], edi
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x3c]
test edi, edi
je 0x50e8b1
mov al, byte [ebx + 0x13]
cmp al, 8
jae 0x50e8b1
movzx eax, al
mov dword [ebx + eax*4 + 0x90], edi
inc byte [ebx + 0x13]
cmp esi, 1
jne 0x50e8d0
test ecx, ecx
je 0x50e8db
mov al, byte [ebx + 0x13]
cmp al, 8
jae 0x50e8db
movzx edx, al
mov dword [ebx + edx*4 + 0x90], ecx
inc byte [ebx + 0x13]
jmp 0x50e8db
cmp esi, dword [ebx + 0x1c]
jle 0x50e8db
mov dword [ebx + 0x1c], esi
mov dword [ebx + 0x20], ecx
mov eax, dword [esp + 0x24]
push eax
call fcn.004ca5a0
mov edi, dword [ebx + 0x28]
mov al, byte [ebx + 0x13]
add esp, 4
lea ecx, [edi + 1]
mov dword [esp + 0x5c], edi
mov dword [esp + 0xb8], edi
mov dword [ebx + 0x28], ecx
test al, al
jne 0x50e90f
inc dword [ebx + 0x2c]
mov ecx, dword [ebx + 0x2c]
mov dword [esp + 0x20], ecx
jmp 0x50e924
dec al
movzx edx, al
mov byte [ebx + 0x13], al
mov eax, dword [ebx + edx*4 + 0x90]
mov dword [esp + 0x20], eax
mov ecx, eax
mov eax, dword [ebp + 0x88]
mov edx, dword [ebp + 0xc]
cmp dword [edx + 0x30], eax
jg 0x50e947
mov eax, dword [esp + 0x3c]
push eax
push ecx
push edi
push 0x74
mov esi, ebp
call fcn.004c5530
add esp, 0x10
jmp 0x50e971
lea edx, [eax + 1]
mov dword [ebp + 0x88], edx
mov edx, dword [ebp + 0x58]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
xor edx, edx
mov byte [eax], 0x74
mov word [eax + 2], dx
mov dword [eax + 4], edi
mov dword [eax + 8], ecx
mov dword [eax + 0xc], esi
mov dword [eax + 0x10], edx
mov byte [eax + 1], dl
mov eax, dword [ebp + 0x88]
mov edx, dword [ebp + 0xc]
cmp dword [edx + 0x30], eax
mov ecx, dword [esp + 0xb4]
jg 0x50e99c
mov eax, dword [esp + 0x44]
push 0
push eax
push ecx
push 0x22
mov esi, ebp
call fcn.004c5530
add esp, 0x10
jmp 0x50e9cc
lea edx, [eax + 1]
mov dword [ebp + 0x88], edx
mov edx, dword [ebp + 0x58]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x44]
xor edx, edx
mov dword [eax + 8], ecx
xor ecx, ecx
mov byte [eax], 0x22
mov word [eax + 2], dx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov byte [esp + 0xb1], 1
cmp dword [esp + 0x2c], 0
je 0x50ea38
mov edx, dword [esp + 0x34]
test byte [edx + 0x44], 4
jne 0x50ea38
cmp dword [esp + 0x40], 0
jne 0x50e9f6
mov eax, dword [esp + 0x24]
cmp byte [eax + 0x30], 0
je 0x50ea38
mov ecx, dword [ebp]
cmp byte [ecx + 0x49], 0
mov dword [esp + 0x88], 0
jne 0x50ea38
mov eax, dword [esp + 0x9c]
lea edx, [eax + eax*4]
mov eax, dword [ebp + 0x58]
lea esi, [eax + edx*4]
movsx edx, byte [esi + 1]
mov eax, dword [esi + 0x10]
push edx
call fcn.004bfdb0
add esp, 4
mov byte [esi + 1], 0
mov dword [esi + 0x10], 0
mov byte [esi], 0xab
cmp dword [esp + 0x40], 0
mov eax, dword [ebp + 0x88]
mov dword [esp + 0x3c], eax
je 0x50ea9b
mov edx, dword [ebp + 0xc]
cmp dword [edx + 0x30], eax
mov ecx, dword [esp + 0xb4]
jg 0x50ea6d
mov eax, dword [esp + 0x20]
push edi
push eax
push ecx
push 0x7f
mov esi, ebp
call fcn.004c5530
add esp, 0x10
jmp 0x50ea9b
lea edx, [eax + 1]
mov dword [ebp + 0x88], edx
mov edx, dword [ebp + 0x58]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
xor edx, edx
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x20]
mov byte [eax], 0x7f
mov word [eax + 2], dx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edx
mov byte [eax + 1], dl
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x50]
xor edi, edi
cmp dword [ecx], edi
jle 0x50eb4f
add ecx, 4
mov dword [esp + 0x2c], ecx
cmp dword [esp + 0x40], 0
je 0x50eb21
mov eax, dword [ebp + 0x88]
mov edx, dword [ebp + 0xc]
cmp dword [edx + 0x30], eax
jg 0x50eae9
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x5c]
lea ecx, [edi + eax]
push ecx
push edi
push edx
push 0x5a
mov esi, ebp
call fcn.004c5530
mov esi, dword [esp + 0x60]
add esp, 0x10
jmp 0x50eb3d
lea ecx, [eax + 1]
mov dword [ebp + 0x88], ecx
lea edx, [eax + eax*4]
mov eax, dword [ebp + 0x58]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x5c]
xor ecx, ecx
mov word [eax + 2], cx
lea ecx, [edi + esi]
mov byte [eax], 0x5a
mov dword [eax + 4], edx
mov dword [eax + 8], edi
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], 0
mov byte [eax + 1], 0
jmp 0x50eb3d
mov eax, dword [esp + 0x2c]
lea edx, [edi + esi]
mov byte [esp + 0xb0], 1
mov ecx, dword [eax]
push edx
push ecx
push ebx
call fcn.005176d0
add esp, 0xc
mov ecx, dword [esp + 0x14]
add dword [esp + 0x2c], 0x18
inc edi
cmp edi, dword [ecx]
jl 0x50eab4
mov eax, dword [esp + 0x60]
test eax, eax
je 0x50eb59
inc dword [eax]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0x88]
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x30], ecx
jg 0x50eb82
mov ecx, dword [esp + 0x50]
push edx
mov edx, dword [esp + 0x14]
push ecx
push edx
push 0x57
mov esi, ebp
call fcn.004c5530
add esp, 0x10
jmp 0x50ebb7
mov edi, dword [ebp + 0x58]
lea eax, [ecx + 1]
mov dword [ebp + 0x88], eax
lea eax, [ecx + ecx*4]
lea eax, [edi + eax*4]
xor edi, edi
mov word [eax + 2], di
mov edi, dword [esp + 0x10]
mov byte [eax], 0x57
mov dword [eax + 4], edi
mov dword [eax + 8], esi
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], 0
mov byte [eax + 1], 0
mov eax, ecx
mov ecx, dword [ebp]
cmp byte [ecx + 0x49], 0
je 0x50ebd2
mov eax, dword [esp + 0x60]
push 0xfffffffffffffff7
call fcn.004bfdb0
add esp, 4
xor edi, edi
jmp 0x50ec0f
xor edi, edi
cmp eax, edi
jge 0x50ebdf
mov eax, dword [ebp + 0x88]
dec eax
mov edx, dword [ebp + 0x58]
lea ecx, [eax + eax*4]
cmp byte [edx + ecx*4 + 1], 0
mov eax, dword [esp + 0x60]
lea ecx, [edx + ecx*4]
je 0x50ec04
push eax
push ebp
mov eax, 0xfffffff7
call fcn.004bff40
add esp, 8
jmp 0x50ec0f
cmp eax, edi
je 0x50ec0f
mov dword [ecx + 0x10], eax
mov byte [ecx + 1], 0xf7
mov eax, dword [ebp + 0x88]
mov edx, dword [ebp + 0xc]
mov ecx, eax
mov dword [esp + 0x2c], ecx
inc ecx
cmp dword [edx + 0x30], eax
jg 0x50ec35
push ecx
push edi
push ecx
push 0x10
mov esi, ebp
call fcn.004c5530
add esp, 0x10
jmp 0x50ec5f
lea edx, [eax + 1]
mov dword [ebp + 0x88], edx
mov edx, dword [ebp + 0x58]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
xor edx, edx
mov byte [eax], 0x10
mov word [eax + 2], dx
mov dword [eax + 4], ecx
mov dword [eax + 8], edi
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], edi
mov byte [eax + 1], dl
mov eax, dword [esp + 0x14]
mov esi, dword [ebx + 8]
mov ecx, dword [eax]
mov eax, dword [esi + 0x88]
mov edx, dword [esi + 0xc]
cmp dword [edx + 0x30], eax
jg 0x50ec8d
mov eax, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x54]
push eax
push ecx
push 0x4d
call fcn.004c5530
add esp, 0x10
jmp 0x50ecc0
lea edx, [eax + 1]
mov dword [esi + 0x88], edx
mov edx, dword [esi + 0x58]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
xor edx, edx
mov word [eax + 2], dx
mov edx, dword [esp + 0x50]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x10]
mov byte [eax], 0x4d
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], edi
mov byte [eax + 1], 0
mov eax, dword [ebp + 0x88]
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x30], eax
jg 0x50ecec
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x54]
push edi
push edx
inc eax
push eax
push 0xc
mov esi, ebp
mov dword [esp + 0x24], eax
call fcn.004c5530
add esp, 0x10
jmp 0x50ed24
lea ecx, [eax + 1]
mov dword [ebp + 0x88], ecx
lea edx, [eax + eax*4]
mov eax, dword [ebp + 0x58]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x4c]
xor ecx, ecx
mov word [eax + 2], cx
mov ecx, dword [esp + 0x54]
inc ecx
mov byte [eax], 0xc
mov dword [esp + 0x14], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov byte [eax + 1], 0
mov eax, dword [ebp + 0x88]
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x30], eax
jg 0x50ed4b
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x54]
push edi
push edx
push eax
push 0x2f
mov esi, ebp
call fcn.004c5530
add esp, 0x10
jmp 0x50ed7e
lea ecx, [eax + 1]
mov dword [ebp + 0x88], ecx
lea edx, [eax + eax*4]
mov eax, dword [ebp + 0x58]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x54]
xor ecx, ecx
mov word [eax + 2], cx
mov ecx, dword [esp + 0x44]
mov byte [eax], 0x2f
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov byte [eax + 1], 0
mov eax, dword [ebp + 0x88]
mov edx, dword [ebp + 0xc]
cmp dword [edx + 0x30], eax
jg 0x50eda5
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x30]
push edi
push eax
push ecx
push 0xc
mov esi, ebp
call fcn.004c5530
add esp, 0x10
jmp 0x50edd8
mov ecx, dword [ebp + 0x58]
lea edx, [eax + 1]
mov dword [ebp + 0x88], edx
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x30]
xor edx, edx
mov word [eax + 2], dx
mov edx, dword [esp + 0x18]
mov byte [eax], 0xc
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov byte [eax + 1], 0
mov eax, dword [esp + 0x2c]
cmp eax, edi
mov ecx, dword [ebp + 0x88]
jge 0x50ede9
lea eax, [ecx - 1]
mov edx, dword [ebp]
cmp byte [edx + 0x49], 0
je 0x50edf9
mov eax, 0x6413f8
jmp 0x50ee02
mov edx, dword [ebp + 0x58]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
mov esi, dword [esp + 0x58]
mov dword [eax + 8], ecx
lea eax, [esp + 0xb0]
push eax
push esi
push ebx
call fcn.004f11a0
mov eax, dword [ebp + 0x88]
mov ecx, dword [ebp + 0xc]
add esp, 0xc
cmp dword [ecx + 0x30], eax
jg 0x50ee3d
push edi
mov edx, esi
push edx
push 1
push 0x46
mov esi, ebp
call fcn.004c5530
add esp, 0x10
jmp 0x50ee6b
lea ecx, [eax + 1]
mov dword [ebp + 0x88], ecx
lea edx, [eax + eax*4]
mov eax, dword [ebp + 0x58]
lea eax, [eax + edx*4]
xor ecx, ecx
mov byte [eax], 0x46
mov word [eax + 2], cx
mov dword [eax + 4], 1
mov dword [eax + 8], esi
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov byte [eax + 1], cl
cmp dword [esp + 0x40], edi
je 0x50eecb
mov eax, dword [ebp + 0x88]
mov edx, dword [ebp + 0xc]
cmp dword [edx + 0x30], eax
mov ecx, dword [esp + 0xb4]
jg 0x50ee9b
mov eax, dword [esp + 0x3c]
push edi
push eax
push ecx
push 3
mov esi, ebp
call fcn.004c5530
add esp, 0x10
jmp 0x50ef0b
lea edx, [eax + 1]
mov dword [ebp + 0x88], edx
mov edx, dword [ebp + 0x58]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
xor edx, edx
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x3c]
mov byte [eax], 3
mov word [eax + 2], dx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov byte [eax + 1], dl
jmp 0x50ef0b
mov edx, dword [esp + 0x24]
push edx
call fcn.004ca5a0
mov ecx, dword [ebp]
add esp, 4
cmp byte [ecx + 0x49], 0
jne 0x50ef0b
mov eax, dword [esp + 0x80]
mov edx, dword [ebp + 0x58]
lea eax, [eax + eax*4]
lea esi, [edx + eax*4]
movsx eax, byte [esi + 1]
push eax
mov eax, dword [esi + 0x10]
call fcn.004bfdb0
add esp, 4
mov byte [esi + 1], 0
mov dword [esi + 0x10], edi
mov byte [esi], 0xab
mov eax, dword [ebp + 0x88]
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x30], eax
jg 0x50ef32
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x14]
push edi
push edx
push eax
push 0xc
mov esi, ebp
call fcn.004c5530
add esp, 0x10
jmp 0x50ef65
lea ecx, [eax + 1]
mov dword [ebp + 0x88], ecx
lea edx, [eax + eax*4]
mov eax, dword [ebp + 0x58]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x14]
xor ecx, ecx
mov word [eax + 2], cx
mov ecx, dword [esp + 0x4c]
mov byte [eax], 0xc
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov byte [eax + 1], 0
mov eax, dword [ebp + 0x88]
mov edx, dword [ebp + 0xc]
cmp dword [edx + 0x30], eax
jg 0x50ef88
mov eax, dword [esp + 0x44]
push edi
push eax
push edi
push 0xb
mov esi, ebp
call fcn.004c5530
add esp, 0x10
jmp 0x50efb6
lea ecx, [eax + 1]
mov dword [ebp + 0x88], ecx
lea edx, [eax + eax*4]
mov eax, dword [ebp + 0x58]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x44]
xor ecx, ecx
mov byte [eax], 0xb
mov word [eax + 2], cx
mov dword [eax + 4], edi
mov dword [eax + 8], edx
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov byte [eax + 1], cl
mov eax, dword [ebp + 0x88]
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x30], eax
mov dword [esp + 0x80], eax
jg 0x50efe1
mov edx, dword [esp + 0x54]
push edi
push edx
push 1
push 0x46
mov esi, ebp
call fcn.004c5530
add esp, 0x10
jmp 0x50f013
lea ecx, [eax + 1]
mov dword [ebp + 0x88], ecx
lea edx, [eax + eax*4]
mov eax, dword [ebp + 0x58]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x54]
xor ecx, ecx
mov byte [eax], 0x46
mov word [eax + 2], cx
mov dword [eax + 4], 1
mov dword [eax + 8], edx
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov byte [eax + 1], cl
mov eax, dword [ebp + 0x88]
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x30], eax
jg 0x50f036
mov edx, dword [esp + 0x14]
push edi
push edi
push edx
push 0x42
mov esi, ebp
call fcn.004c5530
add esp, 0x10
jmp 0x50f064
lea ecx, [eax + 1]
mov dword [ebp + 0x88], ecx
lea edx, [eax + eax*4]
mov eax, dword [ebp + 0x58]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x14]
xor ecx, ecx
mov byte [eax], 0x42
mov word [eax + 2], cx
mov dword [eax + 4], edx
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov byte [eax + 1], cl
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x40]
cmp eax, edi
je 0x50f083
mov ecx, dword [esp + 0x4c]
lea edx, [ecx*4 + 4]
mov ecx, dword [ebp + 0x88]
sub eax, edx
mov dword [eax], ecx
mov eax, dword [ebp + 0x88]
mov edx, dword [ebp + 0xc]
mov ecx, eax
mov dword [esp + 0x4c], ecx
add ecx, 2
cmp dword [edx + 0x30], eax
jg 0x50f0af
mov eax, dword [esp + 0x58]
push edi
push ecx
push eax
push 0x2f
mov esi, ebp
call fcn.004c5530
add esp, 0x10
jmp 0x50f0de
lea edx, [eax + 1]
mov dword [ebp + 0x88], edx
mov edx, dword [ebp + 0x58]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
xor edx, edx
mov word [eax + 2], dx
mov edx, dword [esp + 0x58]
mov byte [eax], 0x2f
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov byte [eax + 1], 0
mov eax, dword [ebp + 0x88]
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x30], eax
jg 0x50f101
mov edx, dword [esp + 0x14]
push edi
push edi
push edx
push 0x42
mov esi, ebp
call fcn.004c5530
add esp, 0x10
jmp 0x50f12f
lea ecx, [eax + 1]
mov dword [ebp + 0x88], ecx
lea edx, [eax + eax*4]
mov eax, dword [ebp + 0x58]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x14]
xor ecx, ecx
mov byte [eax], 0x42
mov word [eax + 2], cx
mov dword [eax + 4], edx
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov byte [eax + 1], cl
lea eax, [esp + 0xb0]
push eax
mov ecx, ebx
call fcn.004c9410
mov esi, dword [esp + 0x50]
mov ecx, dword [esp + 0x2c]
push 0x10
inc esi
push esi
push ecx
push ebx
call fcn.005140e0
mov edx, dword [esp + 0x94]
mov eax, dword [esp + 0x13c]
push edx
push esi
push eax
mov eax, dword [esp + 0x144]
lea ecx, [esp + 0x88]
push ecx
lea edx, [esp + 0xac]
push edx
push 0xffffffffffffffff
push eax
mov edx, ebx
call fcn.004fb420
mov eax, dword [ebp + 0x88]
mov ecx, dword [ebp + 0xc]
add esp, 0x30
cmp dword [ecx + 0x30], eax
jg 0x50f1a9
mov edx, dword [esp + 0x14]
push edi
push edi
push edx
push 0x42
mov esi, ebp
call fcn.004c5530
add esp, 0x10
jmp 0x50f1d7
lea ecx, [eax + 1]
mov dword [ebp + 0x88], ecx
lea edx, [eax + eax*4]
mov eax, dword [ebp + 0x58]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x14]
xor ecx, ecx
mov byte [eax], 0x42
mov word [eax + 2], cx
mov dword [eax + 4], edx
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov byte [eax + 1], cl
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x40]
cmp eax, edi
je 0x50f1f6
mov ecx, dword [esp + 0x18]
lea edx, [ecx*4 + 4]
mov ecx, dword [ebp + 0x88]
sub eax, edx
mov dword [eax], ecx
lea edx, [esp + 0xb0]
push edx
mov eax, ebx
call fcn.004f10a0
mov eax, dword [ebp + 0x88]
mov ecx, dword [ebp + 0xc]
add esp, 4
cmp dword [ecx + 0x30], eax
jg 0x50f22b
mov edx, dword [esp + 0x58]
push edi
push edx
push edi
push 0x46
mov esi, ebp
call fcn.004c5530
add esp, 0x10
jmp 0x50f259
lea ecx, [eax + 1]
mov dword [ebp + 0x88], ecx
lea edx, [eax + eax*4]
mov eax, dword [ebp + 0x58]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x58]
xor ecx, ecx
mov byte [eax], 0x46
mov word [eax + 2], cx
mov dword [eax + 4], edi
mov dword [eax + 8], edx
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov byte [eax + 1], cl
mov eax, dword [ebp + 0x88]
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x30], eax
jg 0x50f27f
mov edx, dword [esp + 0x30]
push edi
push edi
push edx
push 0x42
mov esi, ebp
call fcn.004c5530
add esp, 0x10
jmp 0x50f71c
lea ecx, [eax + 1]
mov dword [ebp + 0x88], ecx
lea edx, [eax + eax*4]
mov eax, dword [ebp + 0x58]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x30]
xor ecx, ecx
mov byte [eax], 0x42
mov word [eax + 2], cx
mov dword [eax + 4], edx
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov byte [eax + 1], cl
jmp 0x50f71c
mov eax, dword [esp + 0x124]
cmp dword [eax + 0x24], 0
mov esi, dword [esp + 0xd8]
jne 0x50f604
mov edx, dword [eax]
cmp dword [edx], 1
jne 0x50f604
mov eax, dword [eax + 0x20]
cmp dword [eax], 1
jne 0x50f604
cmp dword [eax + 0x1c], 0
jne 0x50f604
mov eax, dword [eax + 0x18]
cmp dword [eax + 0x38], 0
mov edx, dword [edx + 4]
mov dword [esp + 0x10], eax
jne 0x50f604
cmp byte [edx], 0x9f
jne 0x50f604
test ecx, ecx
je 0x50f604
mov eax, dword [esi + 4]
test dword [eax + 4], 0x100
je 0x50f604
test byte [edx + 4], 0x10
jne 0x50f604
mov edx, dword [esp + 0x10]
mov ecx, dword [edx + 0x48]
xor esi, esi
mov edi, 0xfff0bdc0
cmp ecx, esi
je 0x50f358
mov eax, dword [ebx]
mov eax, dword [eax + 0x10]
xor edi, edi
cmp dword [eax + 0xc], ecx
je 0x50f358
mov eax, dword [ebx]
mov eax, dword [eax + 0x10]
add eax, 0xc
add eax, 0x10
inc edi
cmp dword [eax], ecx
jne 0x50f350
mov eax, dword [ebx + 0x28]
mov dword [esp + 0x30], eax
inc eax
mov dword [ebx + 0x28], eax
mov eax, dword [ebx + 0x74]
mov ecx, dword [edx + 0x1c]
mov dword [esp + 0x18], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x2c], ecx
cmp eax, esi
jne 0x50f37b
mov eax, ebx
mov edx, dword [eax + 0x54]
mov esi, 1
mov ecx, edi
shl esi, cl
test esi, edx
jne 0x50f39a
or edx, esi
mov dword [eax + 0x54], edx
cmp edi, 1
jne 0x50f39a
call fcn.00502390
mov esi, dword [esp + 0x10]
mov edx, dword [esi]
mov eax, dword [esi + 0x1c]
push edx
push 0
push eax
push edi
mov eax, ebx
call fcn.004c74a0
add esp, 0x10
test byte [esi + 0x24], 0x20
je 0x50f3da
mov eax, dword [esi + 8]
test eax, eax
je 0x50f3d2
nop
mov ecx, dword [eax + 0x38]
and cl, 3
cmp cl, 2
je 0x50f3d2
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x50f3c0
mov edx, eax
mov dword [esp + 0x24], edx
jmp 0x50f3de
mov edx, dword [esp + 0x24]
mov eax, dword [esi + 8]
test eax, eax
je 0x50f412
test byte [eax + 0x38], 4
jne 0x50f407
movzx ecx, word [eax + 0x30]
cmp cx, word [esi + 0x2e]
jge 0x50f407
cmp dword [eax + 0x24], 0
jne 0x50f407
test edx, edx
je 0x50f405
cmp cx, word [edx + 0x30]
jge 0x50f407
mov edx, eax
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x50f3e5
mov dword [esp + 0x24], edx
test edx, edx
je 0x50f42f
mov eax, dword [edx + 0x2c]
push edx
push ebx
mov dword [esp + 0x34], eax
call fcn.004ef460
mov edx, eax
add esp, 8
mov dword [esp + 0x18], edx
jmp 0x50f433
mov edx, dword [esp + 0x18]
mov ecx, dword [ebp + 0x88]
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x30], ecx
jg 0x50f460
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
push edi
push ecx
push edx
push 0x6d
mov esi, ebp
call fcn.004c5530
mov edx, dword [esp + 0x28]
add esp, 0x10
xor esi, esi
jmp 0x50f497
mov esi, dword [ebp + 0x58]
lea eax, [ecx + 1]
mov dword [ebp + 0x88], eax
lea eax, [ecx + ecx*4]
lea eax, [esi + eax*4]
xor esi, esi
mov word [eax + 2], si
mov esi, dword [esp + 0x30]
mov dword [eax + 4], esi
mov esi, dword [esp + 0x2c]
mov dword [eax + 8], esi
xor esi, esi
mov byte [eax], 0x6d
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], esi
mov byte [eax + 1], 0
mov eax, ecx
mov ecx, dword [ebp]
cmp byte [ecx + 0x49], 0
jne 0x50f4b4
mov ecx, dword [ebp + 0x58]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov byte [eax + 1], 0xfd
mov dword [eax + 0x10], 1
cmp edx, esi
je 0x50f4fe
mov ecx, dword [ebp]
cmp byte [ecx + 0x49], 0
je 0x50f4cf
push 0xfffffffffffffff7
mov eax, edx
call fcn.004bfdb0
add esp, 4
jmp 0x50f4fe
mov eax, dword [ebp + 0x88]
mov ecx, dword [ebp + 0x58]
dec eax
lea eax, [eax + eax*4]
cmp byte [ecx + eax*4 + 1], 0
lea ecx, [ecx + eax*4]
je 0x50f4f7
push edx
push ebp
mov eax, 0xfffffff7
call fcn.004bff40
add esp, 8
jmp 0x50f4fe
mov dword [ecx + 0x10], edx
mov byte [ecx + 1], 0xf7
mov edx, dword [esp + 0xd8]
mov ecx, dword [edx + 8]
mov eax, dword [ebp + 0x88]
mov edx, dword [ebp + 0xc]
cmp dword [edx + 0x30], eax
jg 0x50f52c
mov edi, dword [esp + 0x30]
push 0
push ecx
push edi
push 0x68
mov esi, ebp
call fcn.004c5530
add esp, 0x10
jmp 0x50f55d
lea edx, [eax + 1]
mov dword [ebp + 0x88], edx
mov edx, dword [ebp + 0x58]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
xor edx, edx
mov word [eax + 2], dx
mov edx, dword [esp + 0x30]
mov byte [eax], 0x68
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], esi
mov dword [eax + 0x10], esi
mov byte [eax + 1], 0
mov edi, edx
mov eax, dword [ebp + 0x88]
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x30], eax
jg 0x50f580
push 0
push 0
push edi
push 0x75
mov esi, ebp
call fcn.004c5530
add esp, 0x10
xor esi, esi
jmp 0x50f5ad
mov ecx, dword [ebp + 0x58]
lea edx, [eax + 1]
mov dword [ebp + 0x88], edx
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
xor edx, edx
xor esi, esi
mov byte [eax], 0x75
mov word [eax + 2], dx
mov dword [eax + 4], edi
mov dword [eax + 8], esi
mov dword [eax + 0xc], esi
mov dword [eax + 0x10], esi
mov byte [eax + 1], 0
cmp byte [ebx + 0xc3], 2
jne 0x50f6db
mov eax, dword [esp + 0x24]
cmp eax, esi
je 0x50f5e0
mov ecx, dword [esp + 0x10]
test byte [ecx + 0x24], 0x20
je 0x50f5d7
mov edx, dword [eax + 0x38]
and dl, 3
cmp dl, 2
je 0x50f5e0
mov ecx, dword [eax]
mov eax, str._USING_COVERING_INDEX
jmp 0x50f5e7
mov ecx, 0x5d3001
mov eax, ecx
push ecx
push eax
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
push ecx
push str.SCAN_TABLE__s_s_s
push esi
push ebx
call fcn.004d4e20
add esp, 0x18
jmp 0x50f6db
xor edi, edi
cmp dword [esp + 0xd4], edi
je 0x50f642
xor eax, eax
test ecx, ecx
jle 0x50f628
lea edx, [esi + 4]
mov esi, dword [edx]
test byte [esi + 4], 0x20
jne 0x50f628
inc eax
add edx, 0x10
cmp eax, ecx
jl 0x50f618
cmp eax, ecx
jne 0x50f642
inc dword [ebx + 0x2c]
mov edi, dword [ebx + 0x2c]
push 0
push edi
push 0
push 0x46
push ebp
call fcn.004c5570
add esp, 0x14
lea edx, [esp + 0xb0]
push edx
mov eax, ebx
call fcn.004f10a0
movzx ax, byte [esp + 0x3f]
mov edx, dword [esp + 0x88]
push 0
movzx ecx, ax
mov eax, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x28]
push 0
push edx
push eax
push ecx
push ebx
call fcn.0050a010
mov esi, eax
add esp, 0x20
test esi, esi
je 0x50f7d2
lea edx, [esp + 0xb0]
push edx
push edi
push ebx
call fcn.004f11a0
add esp, 0xc
test edi, edi
je 0x50f6aa
push 0
push edi
push 1
push 0x46
push ebp
call fcn.004c5570
add esp, 0x14
cmp byte [esi + 0x2f], 0
jle 0x50f6c3
mov eax, dword [esi + 0x24]
push 0
push eax
push 0
push 0xb
push ebp
call fcn.004c5570
add esp, 0x14
push esi
call fcn.004ca5a0
lea ecx, [esp + 0xb4]
push ecx
mov ecx, ebx
call fcn.004c9410
add esp, 8
mov esi, dword [esp + 0x44]
mov edx, dword [esp + 0x28]
push 0x10
push esi
push edx
push ebx
mov dword [esp + 0x98], 0
call fcn.005140e0
mov eax, dword [esp + 0x138]
mov ecx, dword [esp + 0x134]
push esi
push esi
push eax
push 0
push 0
push 0xffffffffffffffff
push ecx
mov edx, ebx
call fcn.004fb420
add esp, 0x2c
xor edi, edi
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x40]
cmp eax, edi
je 0x50f73b
mov edx, dword [esp + 0x44]
lea ecx, [edx*4 + 4]
mov edx, dword [ebp + 0x88]
sub eax, ecx
mov dword [eax], edx
cmp byte [esp + 0x69], 3
jne 0x50f756
push str.DISTINCT
push str.USE_TEMP_B_TREE_FOR__s
push edi
push ebx
call fcn.004d4e20
add esp, 0x10
cmp dword [esp + 0x88], edi
je 0x50f7a7
cmp dword [esp + 0x8c], edi
mov eax, str.RIGHT_PART_OF_ORDER_BY
jg 0x50f772
mov eax, str.ORDER_BY
push eax
push str.USE_TEMP_B_TREE_FOR__s
push edi
push ebx
call fcn.004d4e20
mov eax, dword [esp + 0x138]
mov ecx, dword [esp + 0x58]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x134]
push eax
push edx
lea eax, [esp + 0xa0]
push eax
push ecx
push ebx
call fcn.004c8890
add esp, 0x24
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x40]
cmp eax, edi
je 0x50f7c6
mov edx, dword [esp + 0x64]
lea ecx, [edx*4 + 4]
mov edx, dword [ebp + 0x88]
sub eax, ecx
mov dword [eax], edx
xor eax, eax
cmp dword [ebx + 0x24], edi
setg al
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x84]
test eax, eax
je 0x50f7eb
mov ecx, dword [esp + 0x34]
push eax
push ecx
call fcn.004c6e70
add esp, 8
mov eax, dword [esp + 0xcc]
mov esi, dword [esp + 0x34]
mov edi, eax
test eax, eax
je 0x50f887
cmp dword [esi + 0x1d8], 0
je 0x50f812
mov ecx, esi
call fcn.004aca10
jmp 0x50f887
cmp eax, dword [esi + 0x128]
jb 0x50f832
cmp eax, dword [esi + 0x12c]
jae 0x50f832
mov edx, dword [esi + 0x124]
mov dword [eax], edx
mov dword [esi + 0x124], eax
jmp 0x50f887
cmp dword [0x633cb0], 0
je 0x50f87d
mov eax, dword [0x641778]
test eax, eax
je 0x50f84e
push eax
call dword [0x633d0c]
add esp, 4
push edi
call dword [0x633ce8]
sub dword [0x641718], eax
dec dword [0x64173c]
push edi
call dword [0x633ce0]
mov eax, dword [0x641778]
add esp, 8
test eax, eax
je 0x50f887
push eax
call dword [0x633d14]
jmp 0x50f884
push eax
call dword [0x633ce0]
add esp, 4
mov eax, dword [esp + 0xd8]
mov edi, eax
test eax, eax
je 0x50f91f
cmp dword [esi + 0x1d8], 0
je 0x50f8aa
mov ecx, esi
call fcn.004aca10
jmp 0x50f91f
cmp eax, dword [esi + 0x128]
jb 0x50f8ca
cmp eax, dword [esi + 0x12c]
jae 0x50f8ca
mov ecx, dword [esi + 0x124]
mov dword [eax], ecx
mov dword [esi + 0x124], eax
jmp 0x50f91f
cmp dword [0x633cb0], 0
je 0x50f915
mov eax, dword [0x641778]
test eax, eax
je 0x50f8e6
push eax
call dword [0x633d0c]
add esp, 4
push edi
call dword [0x633ce8]
sub dword [0x641718], eax
dec dword [0x64173c]
push edi
call dword [0x633ce0]
mov eax, dword [0x641778]
add esp, 8
test eax, eax
je 0x50f91f
push eax
call dword [0x633d14]
jmp 0x50f91c
push eax
call dword [0x633ce0]
add esp, 4
mov eax, dword [ebx + 0xd0]
test eax, eax
jne 0x50f93e
pop edi
pop esi
mov dword [ebx + 0xd0], eax
mov eax, dword [esp + 0x38]
pop ebp
pop ebx
add esp, 0x10c
ret
mov ecx, dword [ebx + 8]
test eax, eax
jge 0x50f94c
mov eax, dword [ecx + 0x88]
dec eax
mov edx, dword [ecx]
cmp byte [edx + 0x49], 0
je 0x50f971
pop edi
mov eax, 0x6413f8
mov eax, dword [eax + 8]
pop esi
mov dword [ebx + 0xd0], eax
mov eax, dword [esp + 0x38]
pop ebp
pop ebx
add esp, 0x10c
ret
mov ecx, dword [ecx + 0x58]
lea eax, [eax + eax*4]
pop edi
lea eax, [ecx + eax*4]
mov eax, dword [eax + 8]
pop esi
mov dword [ebx + 0xd0], eax
mov eax, dword [esp + 0x38]
pop ebp
pop ebx
add esp, 0x10c
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10c
ret