Function at 0x4f8ad0
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 0x4f8b16
cmp dword [ebp + 0x74], eax
jne 0x4f8b09
mov eax, dword [ebp]
test byte [eax + 0x50], 8
jne 0x4f8b09
mov byte [ebp + 0x17], 1
push ebp
call fcn.0051ae50
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 0x4f8b74
test dword [eax + 4], 0x800
je 0x4f8b74
mov eax, dword [eax + 0x14]
xor esi, esi
mov edi, dword [eax + 0x1c]
mov ebx, dword [edi]
test ebx, ebx
jle 0x4f8b66
add edi, 8
lea esp, [esp]
push dword [edi]
call fcn.004f3d60
add esp, 4
test eax, eax
jne 0x4f8b66
inc esi
add edi, 0x14
cmp esi, ebx
jl 0x4f8b50
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 0x4f916a
push eax
call fcn.004d04e0
add esp, 4
test eax, eax
je 0x4f9165
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 0x4f8bdc
mov eax, dword [edx + 0x10]
xor esi, esi
add eax, 0xc
mov dword [esp + 0x10], esi
cmp dword [eax], ecx
je 0x4f8bdc
lea esp, [esp]
lea eax, [eax + 0x10]
inc esi
cmp dword [eax], ecx
jne 0x4f8bd0
mov dword [esp + 0x10], esi
mov edi, dword [esp + 0x68]
mov eax, dword [edi + 0x74]
test eax, eax
jne 0x4f8be9
mov eax, edi
mov ecx, dword [esp + 0x10]
mov edx, 1
mov esi, dword [eax + 0x54]
shl edx, cl
test edx, esi
jne 0x4f8c10
or esi, edx
mov dword [eax + 0x54], esi
cmp ecx, 1
jne 0x4f8c15
push eax
call fcn.00508740
add esp, 4
jmp 0x4f8c3b
cmp ecx, 1
je 0x4f8c3b
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 0x4f8c3b
push dword [ebp]
push 0
push dword [ebp + 0x14]
push dword [esp + 0x1c]
push edi
call fcn.004d3b70
add esp, 0x14
cmp ebx, 1
jne 0x4f8cf9
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 8]
cmp word [eax + 0x20], 0
jge 0x4f8cf9
mov ebx, dword [esp + 0x14]
push 0x11
push ebx
call fcn.0051a320
push 0x65
push ebp
push dword [esp + 0x20]
mov esi, eax
push dword [esp + 0x2c]
push edi
call fcn.00508400
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.00522260
mov edx, dword [ebx + 0x74]
add esp, 0x2c
test esi, esi
jns 0x4f8c9a
lea esi, [edx - 1]
mov eax, dword [ebx]
cmp byte [eax + 0x57], 0
je 0x4f8ca9
mov eax, 0x6a4314
jmp 0x4f8cb2
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 0x4f9258
cmp edi, 3
je 0x4f9258
cmp edi, 4
je 0x4f9258
mov ecx, dword [ebx + 0xc]
mov al, byte [ecx]
cmp al, 0xb0
jne 0x4f8ce7
mov al, byte [ecx + 2]
cmp al, 0xb1
jne 0x4f9232
mov eax, dword [ecx + 0x14]
mov eax, dword [eax]
jmp 0x4f9245
mov eax, 1
xor edi, edi
mov dword [esp + 0x28], eax
test ebx, ebx
jle 0x4f8de5
xor esi, esi
mov edi, edi
test eax, eax
je 0x4f9161
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax + 0xc]
mov bl, byte [ecx]
mov al, bl
cmp al, 0xb0
jne 0x4f8d2a
mov al, byte [ecx + 2]
cmp al, 0xb1
jne 0x4f8d35
mov edx, dword [ecx + 0x14]
mov eax, dword [edx]
jmp 0x4f8d41
cmp al, 0x8a
jne 0x4f8d5e
mov edx, dword [ecx + 0x14]
mov eax, dword [edx + 0x1c]
mov eax, dword [eax]
cmp eax, 1
jle 0x4f8d5e
cmp bl, 0x8a
je 0x4f8d57
cmp byte [ecx + 2], 0x8a
je 0x4f8d57
mov ecx, dword [edx + esi + 8]
jmp 0x4f8d5e
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 0x4f8d81
movsx eax, word [ebp + 0x22]
cmp edx, eax
jge 0x4f8d81
mov eax, dword [ebp + 4]
add edx, edx
mov bl, byte [eax + edx*8 + 8]
jmp 0x4f8d83
mov bl, 0x44
push ecx
call fcn.004f3870
add esp, 4
cmp al, 0x40
jle 0x4f8dab
cmp bl, 0x40
jle 0x4f8da6
cmp al, 0x43
jge 0x4f8da2
cmp bl, 0x43
jge 0x4f8da2
mov al, 0x41
jmp 0x4f8db0
mov al, 0x43
jmp 0x4f8db0
movsx eax, al
jmp 0x4f8dae
movsx eax, bl
or al, 0x40
movsx eax, al
sub eax, 0x41
je 0x4f8dc9
dec eax
je 0x4f8dc9
xor eax, eax
cmp bl, 0x43
setge al
mov dword [esp + 0x28], eax
jmp 0x4f8dcd
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x20]
inc edi
add esi, 0x14
cmp edi, ebx
jl 0x4f8d10
test eax, eax
je 0x4f9161
mov ebx, dword [ebp + 8]
mov dword [esp + 0x28], ebx
test ebx, ebx
je 0x4f9161
mov ebp, dword [esp + 0x20]
xor edi, edi
lea ebx, [ebx]
test edi, edi
jne 0x4f8cb9
movzx eax, word [ebx + 0x34]
mov ecx, eax
cmp ecx, ebp
jl 0x4f914a
cmp dword [ebx + 0x24], edi
jne 0x4f914a
cmp eax, 0x3f
jae 0x4f914a
cmp dword [esp + 0x3c], edi
je 0x4f8e48
movzx eax, word [ebx + 0x32]
cmp eax, ebp
jg 0x4f914a
cmp ecx, ebp
jle 0x4f8e48
cmp byte [ebx + 0x36], 0
je 0x4f914a
xor esi, esi
mov dword [esp + 0x24], 0
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], esi
test ebp, ebp
jle 0x4f8fc6
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 0x4f8e78
mov al, byte [ecx + 2]
cmp al, 0xb1
jne 0x4f8e83
mov edx, dword [ecx + 0x14]
mov eax, dword [edx]
jmp 0x4f8e8f
cmp al, 0x8a
jne 0x4f8eac
mov edx, dword [ecx + 0x14]
mov eax, dword [edx + 0x1c]
mov eax, dword [eax]
cmp eax, 1
jle 0x4f8eac
cmp bl, 0x8a
je 0x4f8ea5
cmp byte [ecx + 2], 0x8a
je 0x4f8ea5
mov ecx, dword [esi + edx + 8]
jmp 0x4f8eac
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 0x4f8ec4
push ecx
push dword [esp + 0x6c]
jmp 0x4f8eee
test esi, esi
je 0x4f8ed8
test dword [esi + 4], 0x100
je 0x4f8ed8
push esi
push dword [esp + 0x6c]
jmp 0x4f8eee
mov ebx, dword [esp + 0x68]
push ecx
push ebx
call fcn.004f66b0
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x4f8ef8
push esi
push ebx
call fcn.004f66b0
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 0x4f8f57
test ebp, ebp
je 0x4f8f5f
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 0x4f8f36
test eax, eax
je 0x4f8f5f
inc edx
jmp 0x4f8f24
movzx ecx, byte [ecx + 0x5726b0]
movzx eax, byte [eax + 0x5726b0]
sub eax, ecx
jne 0x4f8f4b
inc edx
jmp 0x4f8f24
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
inc edi
add ebx, 2
cmp edi, edx
jl 0x4f8f10
mov ebp, dword [esp + 0x20]
cmp edi, ebp
je 0x4f8fba
mov eax, 1
xor edx, edx
mov ecx, edi
call fcn.00415420
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 0x4f8fba
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 0x4f8fa2
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 0x4f8e66
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.00415420
add eax, 0xffffffff
adc edx, 0xffffffff
cmp dword [esp + 0x24], eax
jne 0x4f914a
cmp esi, edx
jne 0x4f914a
mov edi, dword [esp + 0x14]
mov esi, dword [edi + 0x74]
cmp dword [edi + 0x78], esi
jg 0x4f900d
push 0
push 0
push 0
push 0x11
push edi
call fcn.004ceed0
add esp, 0x14
mov esi, eax
jmp 0x4f9040
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.00522260
mov ecx, dword [edi + 0x74]
add esp, 0x10
mov edx, dword [ebx + 0x2c]
cmp dword [edi + 0x78], ecx
jg 0x4f9076
push dword [esp + 0x10]
push edx
push dword [esp + 0x20]
push 0x65
push edi
call fcn.004ceed0
add esp, 0x14
jmp 0x4f90a5
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.00506120
mov edx, eax
add esp, 8
test edx, edx
je 0x4f90e4
mov eax, dword [edi]
cmp byte [eax + 0x57], 0
je 0x4f90d2
push edx
push 0xfffffffffffffff7
push eax
call fcn.004bbca0
add esp, 0xc
jmp 0x4f90e4
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 0x4f911d
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 0x4f911d
push eax
push dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
push eax
call fcn.00514560
add esp, 0xc
mov eax, dword [esp + 0x14]
mov edx, dword [eax + 0x74]
test esi, esi
jns 0x4f912b
lea esi, [edx - 1]
mov eax, dword [eax]
cmp byte [eax + 0x57], 0
je 0x4f913a
mov eax, 0x6a4314
jmp 0x4f9147
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 0x4f8e00
test edi, edi
jne 0x4f8cb9
mov ebp, dword [esp + 0x68]
mov ecx, 1
test byte [esp + 0x70], 1
mov ebx, dword [esp + 0x6c]
je 0x4f91d0
test dword [ebx + 4], 0x800
jne 0x4f91d0
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.004b8870
mov dword [esp + 0x58], 0x5144b0
mov dword [esp + 0x68], 0
call fcn.0053a2d0
add esp, 8
mov dword [ebx + 0xc], esi
cmp word [esp + 0x5c], 0
je 0x4f91c6
mov eax, dword [ebx + 0x14]
cmp dword [eax], 2
jg 0x4f91d0
mov edi, 5
jmp 0x4f8cbd
mov edi, dword [ebp + 0x88]
xor esi, esi
test byte [esp + 0x70], 4
mov eax, 2
mov dword [esp + 0x1c], eax
je 0x4f91f0
mov dword [ebp + 0x88], esi
jmp 0x4f9200
mov eax, dword [esp + 0x74]
test eax, eax
je 0x4f9200
inc dword [ebp + 0x2c]
mov esi, dword [ebp + 0x2c]
mov dword [eax], esi
push dword [esp + 0x18]
push ebx
push ebp
call fcn.004ed690
add esp, 0xc
test esi, esi
je 0x4f9223
push esi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call fcn.00514560
add esp, 0xc
mov dword [ebp + 0x88], edi
mov edi, dword [esp + 0x1c]
jmp 0x4f8cbd
cmp al, 0x8a
jne 0x4f9240
mov eax, dword [ecx + 0x14]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
jmp 0x4f9245
mov eax, 1
xor ecx, ecx
test eax, eax
jle 0x4f9258
jmp 0x4f9250
mov dword [edx + ecx*4], ecx
inc ecx
cmp ecx, eax
jl 0x4f9250
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