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

Disassembly:
sub esp, 0x54
push ebx
push ebp
mov ebp, dword [esp + 0x60]
xor eax, eax
mov dword [esp + 0x14], eax
push esi
push edi
mov eax, dword [ebp + 0x28]
mov dword [esp + 0x18], eax
inc eax
mov dword [ebp + 0x28], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x50cac6
cmp dword [ebp + 0x74], eax
jne 0x50cab9
mov eax, dword [ebp]
test byte [eax + 0x50], 8
jne 0x50cab9
mov byte [ebp + 0x17], 1
push ebp
call fcn.0052ee00
add esp, 4
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x70]
shr eax, 2
and eax, 1
cmp dword [esp + 0x74], 0
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x6c]
je 0x50cb24
test dword [eax + 4], 0x800
je 0x50cb24
mov eax, dword [eax + 0x14]
xor esi, esi
mov edi, dword [eax + 0x1c]
mov ebx, dword [edi]
test ebx, ebx
jle 0x50cb16
add edi, 8
lea esp, [esp]
push dword [edi]
call fcn.00507d10
add esp, 4
test eax, eax
jne 0x50cb16
inc esi
add edi, 0x14
cmp esi, ebx
jl 0x50cb00
mov eax, dword [esp + 0x6c]
sub esi, ebx
neg esi
sbb esi, esi
and dword [esp + 0x74], esi
cmp dword [ebp + 0x24], 0
mov ecx, 1
jne 0x50d11a
push eax
call fcn.004e4490
add esp, 4
test eax, eax
je 0x50d115
mov ecx, dword [eax + 0x1c]
mov eax, dword [eax + 0x20]
mov edx, dword [ebp]
mov dword [esp + 0x2c], ecx
mov ebx, dword [ecx]
mov ebp, dword [eax + 0x18]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x10], 0xffff8000
mov ecx, dword [ebp + 0x3c]
test ecx, ecx
je 0x50cb8c
mov eax, dword [edx + 0x10]
xor esi, esi
add eax, 0xc
mov dword [esp + 0x10], esi
cmp dword [eax], ecx
je 0x50cb8c
lea esp, [esp]
lea eax, [eax + 0x10]
inc esi
cmp dword [eax], ecx
jne 0x50cb80
mov dword [esp + 0x10], esi
mov edi, dword [esp + 0x68]
mov eax, dword [edi + 0x74]
test eax, eax
jne 0x50cb99
mov eax, edi
mov ecx, dword [esp + 0x10]
mov edx, 1
mov esi, dword [eax + 0x54]
shl edx, cl
test edx, esi
jne 0x50cbc0
or esi, edx
mov dword [eax + 0x54], esi
cmp ecx, 1
jne 0x50cbc5
push eax
call fcn.0051c6f0
add esp, 4
jmp 0x50cbeb
cmp ecx, 1
je 0x50cbeb
mov eax, dword [edi]
add ecx, ecx
mov eax, dword [eax + 0x10]
mov eax, dword [eax + ecx*8 + 4]
cmp byte [eax + 9], 0
je 0x50cbeb
push dword [ebp]
push 0
push dword [ebp + 0x14]
push dword [esp + 0x1c]
push edi
call fcn.004e7b20
add esp, 0x14
cmp ebx, 1
jne 0x50cca9
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 8]
cmp word [eax + 0x20], 0
jge 0x50cca9
mov ebx, dword [esp + 0x14]
push 0x11
push ebx
call fcn.0052e2d0
push 0x65
push ebp
push dword [esp + 0x20]
mov esi, eax
push dword [esp + 0x2c]
push edi
call fcn.0051c3b0
push dword [ebp]
mov dword [esp + 0x3c], 1
push str.USING_ROWID_SEARCH_ON_TABLE__s_FOR_IN_OPERATOR
push 0
push edi
call fcn.00536210
mov edx, dword [ebx + 0x74]
add esp, 0x2c
test esi, esi
jns 0x50cc4a
lea esi, [edx - 1]
mov eax, dword [ebx]
cmp byte [eax + 0x57], 0
je 0x50cc59
mov eax, 0x784c9c
jmp 0x50cc62
mov eax, dword [ebx + 0x70]
lea ecx, [esi + esi*4]
lea eax, [eax + ecx*4]
mov edi, dword [esp + 0x1c]
mov dword [eax + 8], edx
mov ebx, dword [esp + 0x6c]
mov edx, dword [esp + 0x78]
test edx, edx
je 0x50d208
cmp edi, 3
je 0x50d208
cmp edi, 4
je 0x50d208
mov ecx, dword [ebx + 0xc]
mov al, byte [ecx]
cmp al, 0xb0
jne 0x50cc97
mov al, byte [ecx + 2]
cmp al, 0xb1
jne 0x50d1e2
mov eax, dword [ecx + 0x14]
mov eax, dword [eax]
jmp 0x50d1f5
mov eax, 1
xor edi, edi
mov dword [esp + 0x28], eax
test ebx, ebx
jle 0x50cd95
xor esi, esi
mov edi, edi
test eax, eax
je 0x50d111
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax + 0xc]
mov bl, byte [ecx]
mov al, bl
cmp al, 0xb0
jne 0x50ccda
mov al, byte [ecx + 2]
cmp al, 0xb1
jne 0x50cce5
mov edx, dword [ecx + 0x14]
mov eax, dword [edx]
jmp 0x50ccf1
cmp al, 0x8a
jne 0x50cd0e
mov edx, dword [ecx + 0x14]
mov eax, dword [edx + 0x1c]
mov eax, dword [eax]
cmp eax, 1
jle 0x50cd0e
cmp bl, 0x8a
je 0x50cd07
cmp byte [ecx + 2], 0x8a
je 0x50cd07
mov ecx, dword [edx + esi + 8]
jmp 0x50cd0e
mov eax, dword [edx + 0x1c]
mov ecx, dword [eax + esi + 8]
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + esi + 8]
movsx edx, word [eax + 0x20]
test edx, edx
js 0x50cd31
movsx eax, word [ebp + 0x22]
cmp edx, eax
jge 0x50cd31
mov eax, dword [ebp + 4]
add edx, edx
mov bl, byte [eax + edx*8 + 8]
jmp 0x50cd33
mov bl, 0x44
push ecx
call fcn.00507820
add esp, 4
cmp al, 0x40
jle 0x50cd5b
cmp bl, 0x40
jle 0x50cd56
cmp al, 0x43
jge 0x50cd52
cmp bl, 0x43
jge 0x50cd52
mov al, 0x41
jmp 0x50cd60
mov al, 0x43
jmp 0x50cd60
movsx eax, al
jmp 0x50cd5e
movsx eax, bl
or al, 0x40
movsx eax, al
sub eax, 0x41
je 0x50cd79
dec eax
je 0x50cd79
xor eax, eax
cmp bl, 0x43
setge al
mov dword [esp + 0x28], eax
jmp 0x50cd7d
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x20]
inc edi
add esi, 0x14
cmp edi, ebx
jl 0x50ccc0
test eax, eax
je 0x50d111
mov ebx, dword [ebp + 8]
mov dword [esp + 0x28], ebx
test ebx, ebx
je 0x50d111
mov ebp, dword [esp + 0x20]
xor edi, edi
lea ebx, [ebx]
test edi, edi
jne 0x50cc69
movzx eax, word [ebx + 0x34]
mov ecx, eax
cmp ecx, ebp
jl 0x50d0fa
cmp dword [ebx + 0x24], edi
jne 0x50d0fa
cmp eax, 0x3f
jae 0x50d0fa
cmp dword [esp + 0x3c], edi
je 0x50cdf8
movzx eax, word [ebx + 0x32]
cmp eax, ebp
jg 0x50d0fa
cmp ecx, ebp
jle 0x50cdf8
cmp byte [ebx + 0x36], 0
je 0x50d0fa
xor esi, esi
mov dword [esp + 0x24], 0
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], esi
test ebp, ebp
jle 0x50cf76
mov dword [esp + 0x38], esi
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax + 0xc]
mov bl, byte [ecx]
mov al, bl
cmp al, 0xb0
jne 0x50ce28
mov al, byte [ecx + 2]
cmp al, 0xb1
jne 0x50ce33
mov edx, dword [ecx + 0x14]
mov eax, dword [edx]
jmp 0x50ce3f
cmp al, 0x8a
jne 0x50ce5c
mov edx, dword [ecx + 0x14]
mov eax, dword [edx + 0x1c]
mov eax, dword [eax]
cmp eax, 1
jle 0x50ce5c
cmp bl, 0x8a
je 0x50ce55
cmp byte [ecx + 2], 0x8a
je 0x50ce55
mov ecx, dword [esi + edx + 8]
jmp 0x50ce5c
mov eax, dword [edx + 0x1c]
mov ecx, dword [eax + esi + 8]
test dword [ecx + 4], 0x100
mov eax, dword [esp + 0x2c]
mov esi, dword [eax + esi + 8]
je 0x50ce74
push ecx
push dword [esp + 0x6c]
jmp 0x50ce9e
test esi, esi
je 0x50ce88
test dword [esi + 4], 0x100
je 0x50ce88
push esi
push dword [esp + 0x6c]
jmp 0x50ce9e
mov ebx, dword [esp + 0x68]
push ecx
push ebx
call fcn.0050a660
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x50cea8
push esi
push ebx
call fcn.0050a660
add esp, 8
mov ebp, eax
mov ecx, dword [esp + 0x28]
xor edi, edi
movzx eax, word [esi + 0x20]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x40], eax
mov ebx, dword [ecx + 4]
lea ecx, [ecx]
cmp word [ebx], ax
jne 0x50cf07
test ebp, ebp
je 0x50cf0f
mov eax, dword [ecx + 0x20]
mov edx, dword [ebp]
mov esi, dword [eax + edi*4]
sub esi, edx
movzx eax, byte [edx]
movzx ecx, byte [esi + edx]
cmp eax, ecx
jne 0x50cee6
test eax, eax
je 0x50cf0f
inc edx
jmp 0x50ced4
movzx ecx, byte [ecx + 0x580ff0]
movzx eax, byte [eax + 0x580ff0]
sub eax, ecx
jne 0x50cefb
inc edx
jmp 0x50ced4
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
inc edi
add ebx, 2
cmp edi, edx
jl 0x50cec0
mov ebp, dword [esp + 0x20]
cmp edi, ebp
je 0x50cf6a
mov eax, 1
xor edx, edx
mov ecx, edi
call fcn.004124b0
mov ebx, dword [esp + 0x34]
mov esi, eax
mov ecx, esi
mov eax, edx
and ecx, dword [esp + 0x24]
and eax, ebx
or ecx, eax
jne 0x50cf6a
or dword [esp + 0x24], esi
or ebx, edx
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x34], ebx
test eax, eax
je 0x50cf52
mov dword [eax + edx*4], edi
mov esi, dword [esp + 0x38]
inc edx
add esi, 0x14
mov dword [esp + 0x30], edx
mov dword [esp + 0x38], esi
cmp edx, ebp
jl 0x50ce16
mov ebx, dword [esp + 0x28]
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x1c]
mov eax, 1
xor edx, edx
mov ecx, ebp
call fcn.004124b0
add eax, 0xffffffff
adc edx, 0xffffffff
cmp dword [esp + 0x24], eax
jne 0x50d0fa
cmp esi, edx
jne 0x50d0fa
mov edi, dword [esp + 0x14]
mov esi, dword [edi + 0x74]
cmp dword [edi + 0x78], esi
jg 0x50cfbd
push 0
push 0
push 0
push 0x11
push edi
call fcn.004e2e80
add esp, 0x14
mov esi, eax
jmp 0x50cff0
lea eax, [esi + 1]
mov dword [edi + 0x74], eax
lea ecx, [esi + esi*4]
mov eax, dword [edi + 0x70]
mov dword [eax + ecx*4], 0x11
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
push dword [ebx]
push str.USING_INDEX__s_FOR_IN_OPERATOR
push 0
push dword [esp + 0x74]
call fcn.00536210
mov ecx, dword [edi + 0x74]
add esp, 0x10
mov edx, dword [ebx + 0x2c]
cmp dword [edi + 0x78], ecx
jg 0x50d026
push dword [esp + 0x10]
push edx
push dword [esp + 0x20]
push 0x65
push edi
call fcn.004e2e80
add esp, 0x14
jmp 0x50d055
lea eax, [ecx + 1]
mov dword [edi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x70]
mov edi, dword [esp + 0x18]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x10]
mov dword [eax + ecx*4], 0x65
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x68]
push ebx
push eax
mov edi, dword [eax + 8]
call fcn.0051a0d0
mov edx, eax
add esp, 8
test edx, edx
je 0x50d094
mov eax, dword [edi]
cmp byte [eax + 0x57], 0
je 0x50d082
push edx
push 0xfffffffffffffff7
push eax
call fcn.004cfc50
add esp, 0xc
jmp 0x50d094
mov eax, dword [edi + 0x74]
lea ecx, [eax + eax*4]
mov eax, dword [edi + 0x70]
mov byte [eax + ecx*4 - 0x13], 0xf7
mov dword [eax + ecx*4 - 4], edx
mov eax, dword [ebx + 0x1c]
mov edx, dword [esp + 0x74]
movzx edi, byte [eax]
add edi, 3
mov dword [esp + 0x1c], edi
test edx, edx
je 0x50d0cd
mov ecx, dword [esp + 0x68]
mov eax, dword [ecx + 0x2c]
inc eax
mov dword [ecx + 0x2c], eax
mov dword [edx], eax
cmp ebp, 1
jne 0x50d0cd
push eax
push dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
push eax
call fcn.00528510
add esp, 0xc
mov eax, dword [esp + 0x14]
mov edx, dword [eax + 0x74]
test esi, esi
jns 0x50d0db
lea esi, [edx - 1]
mov eax, dword [eax]
cmp byte [eax + 0x57], 0
je 0x50d0ea
mov eax, 0x784c9c
jmp 0x50d0f7
mov eax, dword [esp + 0x14]
lea ecx, [esi + esi*4]
mov eax, dword [eax + 0x70]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov ebx, dword [ebx + 0x14]
mov dword [esp + 0x28], ebx
test ebx, ebx
jne 0x50cdb0
test edi, edi
jne 0x50cc69
mov ebp, dword [esp + 0x68]
mov ecx, 1
test byte [esp + 0x70], 1
mov ebx, dword [esp + 0x6c]
je 0x50d180
test dword [ebx + 4], 0x800
jne 0x50d180
mov esi, dword [ebx + 0xc]
lea eax, [esp + 0x48]
push ebx
push eax
mov dword [ebx + 0xc], 0
mov word [esp + 0x64], cx
mov dword [esp + 0x54], fcn.004cc820
mov dword [esp + 0x58], 0x528460
mov dword [esp + 0x68], 0
call fcn.0054e280
add esp, 8
mov dword [ebx + 0xc], esi
cmp word [esp + 0x5c], 0
je 0x50d176
mov eax, dword [ebx + 0x14]
cmp dword [eax], 2
jg 0x50d180
mov edi, 5
jmp 0x50cc6d
mov edi, dword [ebp + 0x88]
xor esi, esi
test byte [esp + 0x70], 4
mov eax, 2
mov dword [esp + 0x1c], eax
je 0x50d1a0
mov dword [ebp + 0x88], esi
jmp 0x50d1b0
mov eax, dword [esp + 0x74]
test eax, eax
je 0x50d1b0
inc dword [ebp + 0x2c]
mov esi, dword [ebp + 0x2c]
mov dword [eax], esi
push dword [esp + 0x18]
push ebx
push ebp
call fcn.00501640
add esp, 0xc
test esi, esi
je 0x50d1d3
push esi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call fcn.00528510
add esp, 0xc
mov dword [ebp + 0x88], edi
mov edi, dword [esp + 0x1c]
jmp 0x50cc6d
cmp al, 0x8a
jne 0x50d1f0
mov eax, dword [ecx + 0x14]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
jmp 0x50d1f5
mov eax, 1
xor ecx, ecx
test eax, eax
jle 0x50d208
jmp 0x50d200
mov dword [edx + ecx*4], ecx
inc ecx
cmp ecx, eax
jl 0x50d200
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x18]
mov dword [ecx], eax
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret