Function at 0x50c880
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 0x50c8c6
cmp dword [ebp + 0x74], eax
jne 0x50c8b9
mov eax, dword [ebp]
test byte [eax + 0x50], 8
jne 0x50c8b9
mov byte [ebp + 0x17], 1
push ebp
call fcn.0052ec00
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 0x50c924
test dword [eax + 4], 0x800
je 0x50c924
mov eax, dword [eax + 0x14]
xor esi, esi
mov edi, dword [eax + 0x1c]
mov ebx, dword [edi]
test ebx, ebx
jle 0x50c916
add edi, 8
lea esp, [esp]
push dword [edi]
call fcn.00507b10
add esp, 4
test eax, eax
jne 0x50c916
inc esi
add edi, 0x14
cmp esi, ebx
jl 0x50c900
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 0x50cf1a
push eax
call fcn.004e4290
add esp, 4
test eax, eax
je 0x50cf15
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 0x50c98c
mov eax, dword [edx + 0x10]
xor esi, esi
add eax, 0xc
mov dword [esp + 0x10], esi
cmp dword [eax], ecx
je 0x50c98c
lea esp, [esp]
lea eax, [eax + 0x10]
inc esi
cmp dword [eax], ecx
jne 0x50c980
mov dword [esp + 0x10], esi
mov edi, dword [esp + 0x68]
mov eax, dword [edi + 0x74]
test eax, eax
jne 0x50c999
mov eax, edi
mov ecx, dword [esp + 0x10]
mov edx, 1
mov esi, dword [eax + 0x54]
shl edx, cl
test edx, esi
jne 0x50c9c0
or esi, edx
mov dword [eax + 0x54], esi
cmp ecx, 1
jne 0x50c9c5
push eax
call fcn.0051c4f0
add esp, 4
jmp 0x50c9eb
cmp ecx, 1
je 0x50c9eb
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 0x50c9eb
push dword [ebp]
push 0
push dword [ebp + 0x14]
push dword [esp + 0x1c]
push edi
call fcn.004e7920
add esp, 0x14
cmp ebx, 1
jne 0x50caa9
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 8]
cmp word [eax + 0x20], 0
jge 0x50caa9
mov ebx, dword [esp + 0x14]
push 0x11
push ebx
call fcn.0052e0d0
push 0x65
push ebp
push dword [esp + 0x20]
mov esi, eax
push dword [esp + 0x2c]
push edi
call fcn.0051c1b0
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.00536010
mov edx, dword [ebx + 0x74]
add esp, 0x2c
test esi, esi
jns 0x50ca4a
lea esi, [edx - 1]
mov eax, dword [ebx]
cmp byte [eax + 0x57], 0
je 0x50ca59
mov eax, 0x74c854
jmp 0x50ca62
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 0x50d008
cmp edi, 3
je 0x50d008
cmp edi, 4
je 0x50d008
mov ecx, dword [ebx + 0xc]
mov al, byte [ecx]
cmp al, 0xb0
jne 0x50ca97
mov al, byte [ecx + 2]
cmp al, 0xb1
jne 0x50cfe2
mov eax, dword [ecx + 0x14]
mov eax, dword [eax]
jmp 0x50cff5
mov eax, 1
xor edi, edi
mov dword [esp + 0x28], eax
test ebx, ebx
jle 0x50cb95
xor esi, esi
mov edi, edi
test eax, eax
je 0x50cf11
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax + 0xc]
mov bl, byte [ecx]
mov al, bl
cmp al, 0xb0
jne 0x50cada
mov al, byte [ecx + 2]
cmp al, 0xb1
jne 0x50cae5
mov edx, dword [ecx + 0x14]
mov eax, dword [edx]
jmp 0x50caf1
cmp al, 0x8a
jne 0x50cb0e
mov edx, dword [ecx + 0x14]
mov eax, dword [edx + 0x1c]
mov eax, dword [eax]
cmp eax, 1
jle 0x50cb0e
cmp bl, 0x8a
je 0x50cb07
cmp byte [ecx + 2], 0x8a
je 0x50cb07
mov ecx, dword [edx + esi + 8]
jmp 0x50cb0e
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 0x50cb31
movsx eax, word [ebp + 0x22]
cmp edx, eax
jge 0x50cb31
mov eax, dword [ebp + 4]
add edx, edx
mov bl, byte [eax + edx*8 + 8]
jmp 0x50cb33
mov bl, 0x44
push ecx
call fcn.00507620
add esp, 4
cmp al, 0x40
jle 0x50cb5b
cmp bl, 0x40
jle 0x50cb56
cmp al, 0x43
jge 0x50cb52
cmp bl, 0x43
jge 0x50cb52
mov al, 0x41
jmp 0x50cb60
mov al, 0x43
jmp 0x50cb60
movsx eax, al
jmp 0x50cb5e
movsx eax, bl
or al, 0x40
movsx eax, al
sub eax, 0x41
je 0x50cb79
dec eax
je 0x50cb79
xor eax, eax
cmp bl, 0x43
setge al
mov dword [esp + 0x28], eax
jmp 0x50cb7d
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x20]
inc edi
add esi, 0x14
cmp edi, ebx
jl 0x50cac0
test eax, eax
je 0x50cf11
mov ebx, dword [ebp + 8]
mov dword [esp + 0x28], ebx
test ebx, ebx
je 0x50cf11
mov ebp, dword [esp + 0x20]
xor edi, edi
lea ebx, [ebx]
test edi, edi
jne 0x50ca69
movzx eax, word [ebx + 0x34]
mov ecx, eax
cmp ecx, ebp
jl 0x50cefa
cmp dword [ebx + 0x24], edi
jne 0x50cefa
cmp eax, 0x3f
jae 0x50cefa
cmp dword [esp + 0x3c], edi
je 0x50cbf8
movzx eax, word [ebx + 0x32]
cmp eax, ebp
jg 0x50cefa
cmp ecx, ebp
jle 0x50cbf8
cmp byte [ebx + 0x36], 0
je 0x50cefa
xor esi, esi
mov dword [esp + 0x24], 0
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], esi
test ebp, ebp
jle 0x50cd76
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 0x50cc28
mov al, byte [ecx + 2]
cmp al, 0xb1
jne 0x50cc33
mov edx, dword [ecx + 0x14]
mov eax, dword [edx]
jmp 0x50cc3f
cmp al, 0x8a
jne 0x50cc5c
mov edx, dword [ecx + 0x14]
mov eax, dword [edx + 0x1c]
mov eax, dword [eax]
cmp eax, 1
jle 0x50cc5c
cmp bl, 0x8a
je 0x50cc55
cmp byte [ecx + 2], 0x8a
je 0x50cc55
mov ecx, dword [esi + edx + 8]
jmp 0x50cc5c
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 0x50cc74
push ecx
push dword [esp + 0x6c]
jmp 0x50cc9e
test esi, esi
je 0x50cc88
test dword [esi + 4], 0x100
je 0x50cc88
push esi
push dword [esp + 0x6c]
jmp 0x50cc9e
mov ebx, dword [esp + 0x68]
push ecx
push ebx
call fcn.0050a460
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x50cca8
push esi
push ebx
call fcn.0050a460
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 0x50cd07
test ebp, ebp
je 0x50cd0f
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 0x50cce6
test eax, eax
je 0x50cd0f
inc edx
jmp 0x50ccd4
movzx ecx, byte [ecx + 0x580ff0]
movzx eax, byte [eax + 0x580ff0]
sub eax, ecx
jne 0x50ccfb
inc edx
jmp 0x50ccd4
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
inc edi
add ebx, 2
cmp edi, edx
jl 0x50ccc0
mov ebp, dword [esp + 0x20]
cmp edi, ebp
je 0x50cd6a
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 0x50cd6a
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 0x50cd52
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 0x50cc16
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 0x50cefa
cmp esi, edx
jne 0x50cefa
mov edi, dword [esp + 0x14]
mov esi, dword [edi + 0x74]
cmp dword [edi + 0x78], esi
jg 0x50cdbd
push 0
push 0
push 0
push 0x11
push edi
call fcn.004e2c80
add esp, 0x14
mov esi, eax
jmp 0x50cdf0
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.00536010
mov ecx, dword [edi + 0x74]
add esp, 0x10
mov edx, dword [ebx + 0x2c]
cmp dword [edi + 0x78], ecx
jg 0x50ce26
push dword [esp + 0x10]
push edx
push dword [esp + 0x20]
push 0x65
push edi
call fcn.004e2c80
add esp, 0x14
jmp 0x50ce55
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.00519ed0
mov edx, eax
add esp, 8
test edx, edx
je 0x50ce94
mov eax, dword [edi]
cmp byte [eax + 0x57], 0
je 0x50ce82
push edx
push 0xfffffffffffffff7
push eax
call fcn.004cfa50
add esp, 0xc
jmp 0x50ce94
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 0x50cecd
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 0x50cecd
push eax
push dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
push eax
call fcn.00528310
add esp, 0xc
mov eax, dword [esp + 0x14]
mov edx, dword [eax + 0x74]
test esi, esi
jns 0x50cedb
lea esi, [edx - 1]
mov eax, dword [eax]
cmp byte [eax + 0x57], 0
je 0x50ceea
mov eax, 0x74c854
jmp 0x50cef7
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 0x50cbb0
test edi, edi
jne 0x50ca69
mov ebp, dword [esp + 0x68]
mov ecx, 1
test byte [esp + 0x70], 1
mov ebx, dword [esp + 0x6c]
je 0x50cf80
test dword [ebx + 4], 0x800
jne 0x50cf80
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.004cc620
mov dword [esp + 0x58], 0x528260
mov dword [esp + 0x68], 0
call fcn.0054e080
add esp, 8
mov dword [ebx + 0xc], esi
cmp word [esp + 0x5c], 0
je 0x50cf76
mov eax, dword [ebx + 0x14]
cmp dword [eax], 2
jg 0x50cf80
mov edi, 5
jmp 0x50ca6d
mov edi, dword [ebp + 0x88]
xor esi, esi
test byte [esp + 0x70], 4
mov eax, 2
mov dword [esp + 0x1c], eax
je 0x50cfa0
mov dword [ebp + 0x88], esi
jmp 0x50cfb0
mov eax, dword [esp + 0x74]
test eax, eax
je 0x50cfb0
inc dword [ebp + 0x2c]
mov esi, dword [ebp + 0x2c]
mov dword [eax], esi
push dword [esp + 0x18]
push ebx
push ebp
call fcn.00501440
add esp, 0xc
test esi, esi
je 0x50cfd3
push esi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call fcn.00528310
add esp, 0xc
mov dword [ebp + 0x88], edi
mov edi, dword [esp + 0x1c]
jmp 0x50ca6d
cmp al, 0x8a
jne 0x50cff0
mov eax, dword [ecx + 0x14]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
jmp 0x50cff5
mov eax, 1
xor ecx, ecx
test eax, eax
jle 0x50d008
jmp 0x50d000
mov dword [edx + ecx*4], ecx
inc ecx
cmp ecx, eax
jl 0x50d000
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