Function at 0x4f21e0
Capabilities:
Inspect section memory permissions
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov ecx, dword [ebp + 0xc]
xor eax, eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x1c]
xor esi, esi
mov edx, dword [ebx]
mov ebx, dword [ebp + 0x18]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x1c], eax
mov eax, 0xa4
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x20], edx
mov dword [ebp - 8], esi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], eax
mov dword [edi + 0x1c], 0xffffffff
test ecx, ecx
je 0x4f22a8
test byte [ebx + 0x18], 6
je 0x4f2236
mov dword [ebp + 0xc], esi
jmp 0x4f22a8
mov ebx, dword [edx + 0x14]
xor esi, esi
test ebx, ebx
jle 0x4f2275
mov edi, dword [edx + 0x10]
push ecx
push dword [edi]
call fcn.0052a920
add esp, 8
test eax, eax
je 0x4f225e
mov ecx, dword [ebp + 0xc]
inc esi
add edi, 0x10
cmp esi, ebx
jl 0x4f2242
jmp 0x4f2272
mov edx, dword [ebp - 0x20]
mov eax, esi
add eax, eax
mov ecx, dword [edx + 0x10]
mov eax, dword [ecx + eax*8 + 0xc]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
mov edi, dword [ebp + 0x1c]
cmp esi, ebx
jne 0x4f22a3
push ecx
push str.main
call fcn.0052a920
mov ebx, dword [ebp + 0x18]
add esp, 8
xor esi, esi
test eax, eax
jne 0x4f22a8
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x1c], ecx
mov dword [ebp + 0xc], eax
jmp 0x4f22a8
xor esi, esi
mov ebx, dword [ebp + 0x18]
mov ecx, dword [ebx + 4]
mov dword [ebp - 0x44], ecx
test ecx, ecx
je 0x4f2594
xor edx, edx
lea eax, [ecx + 8]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], eax
cmp dword [ecx], edx
jle 0x4f2571
lea esp, [esp]
mov ebx, dword [eax + 0x14]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x34], ecx
test ebx, ebx
je 0x4f2360
test dword [ebx + 4], 0x800
je 0x4f2360
mov ebx, dword [ebx + 0x1c]
xor esi, esi
mov dword [ebp - 0x30], 0
cmp dword [ebx], esi
jle 0x4f2353
lea edi, [ebx + 4]
lea ecx, [ecx]
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push dword [ebp + 0x14]
push edi
call fcn.0051cb30
add esp, 0x10
test eax, eax
je 0x4f2337
mov eax, dword [ebp - 0x14]
inc dword [ebp - 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xc], 2
mov word [eax + 0x20], si
mov eax, 1
mov dword [ebp - 0x30], eax
jmp 0x4f233a
mov eax, dword [ebp - 0x30]
inc esi
add edi, 0x14
cmp esi, dword [ebx]
jl 0x4f2300
mov edx, dword [ebp - 0x18]
test eax, eax
mov eax, dword [ebp - 0x14]
jne 0x4f2556
mov ecx, dword [ebp - 0x34]
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x4f2556
jmp 0x4f2363
mov esi, dword [ebp + 0x10]
cmp dword [ebp + 0xc], 0
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x3c], ebx
je 0x4f237b
mov ebx, dword [ebp - 0x1c]
cmp dword [ecx + 0x48], ebx
jne 0x4f2556
test esi, esi
je 0x4f23ec
mov ebx, dword [eax + 0xc]
mov edx, ebx
test ebx, ebx
jne 0x4f238a
mov edx, dword [ecx]
mov edi, esi
sub edi, edx
mov edi, edi
movzx eax, byte [edx]
movzx esi, byte [edi + edx]
cmp eax, esi
jne 0x4f23cd
test eax, eax
jne 0x4f23e3
mov eax, dword [ebp + 8]
cmp byte [eax + 0xc8], 2
jb 0x4f23ec
test ebx, ebx
je 0x4f23ec
mov eax, dword [eax + 0x110]
test eax, eax
je 0x4f23ec
mov ecx, dword [ebp + 0x1c]
add ecx, 0x2c
nop
cmp dword [eax], ecx
je 0x4f23e6
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x4f23c0
jmp 0x4f23ec
movzx ecx, byte [eax + 0x58c630]
movzx eax, byte [esi + 0x58c630]
sub ecx, eax
jne 0x4f2550
inc edx
jmp 0x4f2390
mov dword [eax], 0
inc dword [ebp - 0xc]
cmp dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0x14]
cmovne eax, dword [ebp - 8]
mov esi, dword [ebp + 0x14]
push esi
mov dword [ebp - 8], eax
call fcn.0052a960
mov cl, al
xor edi, edi
mov eax, dword [ebp - 0x34]
add esp, 4
mov byte [ebp - 1], cl
mov dword [ebp - 0x30], edi
mov ebx, dword [eax + 4]
movsx eax, word [eax + 0x2a]
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x2c], eax
test eax, eax
jle 0x4f2550
jmp 0x4f2430
cmp byte [ebx + 0xf], cl
jne 0x4f24b5
mov edx, dword [ebx]
sub esi, edx
lea ecx, [ecx]
movzx ecx, byte [edx]
movzx eax, byte [esi + edx]
cmp ecx, eax
jne 0x4f24d8
test ecx, ecx
jne 0x4f24ea
mov esi, dword [ebp - 0x10]
cmp esi, 1
jne 0x4f2518
mov eax, dword [ebp - 0x14]
test byte [eax + 0x24], 4
jne 0x4f24ac
mov eax, dword [eax + 0x34]
test eax, eax
je 0x4f2518
mov ecx, dword [eax + 4]
xor ebx, ebx
mov dword [ebp - 0x40], ecx
test ecx, ecx
jle 0x4f2518
mov edi, dword [eax]
lea esp, [esp]
mov esi, dword [ebp + 0x14]
mov edx, dword [edi]
sub esi, edx
movzx eax, byte [edx]
movzx ecx, byte [edx + esi]
cmp eax, ecx
jne 0x4f24f0
test eax, eax
jne 0x4f2502
mov ebx, dword [ebp - 0x3c]
mov edi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
mov cl, byte [ebp - 1]
mov esi, dword [ebp + 0x14]
inc edi
add ebx, 0x14
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x3c], ebx
cmp edi, eax
jl 0x4f2430
mov esi, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], esi
jmp 0x4f2559
movzx eax, byte [eax + 0x58c630]
movzx ecx, byte [ecx + 0x58c630]
sub ecx, eax
jne 0x4f24ac
inc edx
jmp 0x4f2440
movzx ecx, byte [ecx + 0x58c630]
movzx eax, byte [eax + 0x58c630]
sub eax, ecx
jne 0x4f2505
inc edx
jmp 0x4f2497
inc ebx
add edi, 8
cmp ebx, dword [ebp - 0x40]
jl 0x4f2490
mov edi, dword [ebp - 0x30]
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x34]
inc esi
mov dword [ebp - 0x10], esi
mov esi, dword [ebp - 0x14]
mov dword [ebp - 8], esi
movsx eax, word [eax + 0x28]
cmp edi, eax
jne 0x4f253e
mov edi, dword [ebp + 0x1c]
or eax, 0xffffffff
mov edx, dword [ebp - 0x18]
mov word [edi + 0x20], ax
mov eax, esi
jmp 0x4f255c
mov edx, dword [ebp - 0x18]
movzx eax, di
mov edi, dword [ebp + 0x1c]
mov word [edi + 0x20], ax
mov eax, dword [ebp - 0x14]
jmp 0x4f255c
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 0x1c]
mov ecx, dword [ebp - 0x44]
inc edx
add eax, 0x48
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], eax
cmp edx, dword [ecx]
jl 0x4f22d0
test esi, esi
je 0x4f2594
mov eax, dword [esi + 0x2c]
mov dword [edi + 0x1c], eax
mov eax, dword [esi + 0x10]
mov dword [edi + 0x2c], eax
test byte [esi + 0x24], 8
je 0x4f258e
or dword [edi + 4], 0x100000
mov eax, dword [eax + 0x48]
mov dword [ebp - 0x1c], eax
cmp dword [ebp + 0xc], 0
mov ecx, dword [ebp - 0xc]
jne 0x4f285c
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4f285c
test ecx, ecx
jne 0x4f285c
mov ecx, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x14], ebx
cmp dword [ecx + 0x78], ebx
je 0x4f265c
mov bl, byte [ecx + 0x90]
cmp bl, 0x7e
je 0x4f2619
mov edx, 0x5928f8
mov esi, eax
sub esi, edx
lea esp, [esp]
movzx ecx, byte [edx]
movzx eax, byte [esi + edx]
cmp ecx, eax
jne 0x4f2601
test ecx, ecx
jne 0x4f2613
mov ebx, dword [ebp + 8]
mov dword [edi + 0x1c], 1
mov ebx, dword [ebx + 0x78]
mov dword [ebp - 0x14], ebx
jmp 0x4f265c
movzx eax, byte [eax + 0x58c630]
movzx ecx, byte [ecx + 0x58c630]
sub ecx, eax
jne 0x4f2616
inc edx
jmp 0x4f25e0
mov eax, dword [ebp + 0x10]
cmp bl, 0x7d
je 0x4f2659
mov edx, 0x5928fc
mov esi, eax
sub esi, edx
movzx ecx, byte [edx]
movzx eax, byte [esi + edx]
cmp ecx, eax
jne 0x4f2644
test ecx, ecx
jne 0x4f2656
mov ebx, dword [ebp + 8]
mov dword [edi + 0x1c], ecx
mov ebx, dword [ebx + 0x78]
mov dword [ebp - 0x14], ebx
jmp 0x4f265c
movzx eax, byte [eax + 0x58c630]
movzx ecx, byte [ecx + 0x58c630]
sub ecx, eax
jne 0x4f2659
inc edx
jmp 0x4f2627
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebp + 0x18]
test dword [eax + 0x18], 0x200
je 0x4f26aa
mov edi, dword [eax + 8]
test edi, edi
je 0x4f26aa
mov esi, dword [ebp + 0x10]
mov edx, str.excluded
sub esi, edx
lea esp, [esp]
movzx ecx, byte [edx]
movzx eax, byte [esi + edx]
cmp ecx, eax
jne 0x4f2715
test ecx, ecx
jne 0x4f2727
mov eax, dword [edi + 0x14]
mov ebx, dword [eax + 0x18]
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x14], ebx
mov dword [eax + 0x1c], 2
test ebx, ebx
je 0x4f2861
push dword [ebp + 0x14]
call fcn.0052a960
mov ecx, dword [ebx + 0x48]
add esp, 4
mov ebx, dword [ebx + 4]
xor esi, esi
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 1], al
mov dword [ebp - 0xc], 1
movsx edi, word [ecx + 0x2a]
mov dword [ebp - 0x3c], edi
test edi, edi
jle 0x4f2750
cmp byte [ebx + 0xf], al
jne 0x4f2748
mov edi, dword [ebp + 0x14]
mov edx, dword [ebx]
sub edi, edx
lea esp, [esp]
movzx ecx, byte [edx]
movzx eax, byte [edx + edi]
cmp ecx, eax
jne 0x4f272d
test ecx, ecx
jne 0x4f273f
mov ebx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x3c]
movsx eax, word [ebx + 0x28]
cmp esi, eax
mov eax, 0xffffffff
cmove esi, eax
jmp 0x4f2753
movzx eax, byte [eax + 0x58c630]
movzx ecx, byte [ecx + 0x58c630]
sub ecx, eax
jne 0x4f26aa
inc edx
jmp 0x4f2680
movzx eax, byte [eax + 0x58c630]
movzx ecx, byte [ecx + 0x58c630]
sub ecx, eax
jne 0x4f2742
inc edx
jmp 0x4f26f0
mov edi, dword [ebp - 0x3c]
mov al, byte [ebp - 1]
inc esi
add ebx, 0x14
cmp esi, edi
jl 0x4f26e0
mov ebx, dword [ebp - 0x14]
cmp esi, edi
jl 0x4f277d
push dword [ebp + 0x14]
call fcn.0051b040
add esp, 4
test eax, eax
je 0x4f2775
test dword [ebx + 0x24], 0x200
mov eax, 0xffffffff
cmove esi, eax
cmp esi, edi
jge 0x4f2861
mov edi, dword [ebp + 0x1c]
inc dword [ebp - 0x10]
mov eax, dword [edi + 0x1c]
cmp eax, 2
jne 0x4f27ce
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 0x18]
cmp byte [eax + 0xc8], 2
jb 0x4f27b0
mov word [edi + 0x20], si
mov dword [edi + 0x2c], ebx
mov dword [ebp - 0x24], 0xa4
jmp 0x4f286a
mov eax, dword [edx + 8]
mov dword [ebp - 0x24], 0xad
mov eax, dword [eax + 0x18]
add eax, esi
or dword [edi + 4], 0x400000
mov dword [edi + 0x1c], eax
jmp 0x4f286a
test esi, esi
jns 0x4f27e9
mov byte [edi + 1], 0x44
mov dword [edi + 0x2c], ebx
mov word [edi + 0x20], si
mov dword [ebp - 0x24], 0x4d
jmp 0x4f2864
test eax, eax
jne 0x4f2830
cmp esi, 0x20
jl 0x4f280e
mov ecx, dword [ebp + 8]
or eax, 0xffffffff
mov dword [ebp - 0x24], 0x4d
or dword [ecx + 0x88], eax
mov dword [edi + 0x2c], ebx
mov word [edi + 0x20], si
jmp 0x4f2864
mov ecx, esi
mov dword [ebp - 0x24], 0x4d
mov eax, 1
shl eax, cl
mov ecx, dword [ebp + 8]
or dword [ecx + 0x88], eax
mov dword [edi + 0x2c], ebx
mov word [edi + 0x20], si
jmp 0x4f2864
cmp esi, 0x20
jl 0x4f283a
or eax, 0xffffffff
jmp 0x4f2843
mov eax, 1
mov ecx, esi
shl eax, cl
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x24], 0x4d
or dword [ecx + 0x8c], eax
mov dword [edi + 0x2c], ebx
mov word [edi + 0x20], si
jmp 0x4f2864
mov edi, dword [ebp + 0x1c]
jmp 0x4f2867
mov edi, dword [ebp + 0x1c]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 0x18]
mov ebx, dword [ebp - 0x10]
mov esi, dword [ebp + 0x14]
test ebx, ebx
jne 0x4f28b3
cmp ecx, 1
jne 0x4f28b3
cmp dword [ebp - 8], ebx
je 0x4f28b3
test byte [edx + 0x18], 0x28
jne 0x4f28b3
push esi
call fcn.0051b040
add esp, 4
test eax, eax
je 0x4f28b3
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
test dword [eax + 0x24], 0x200
jne 0x4f28b3
mov ebx, 1
mov byte [edi + 1], 0x44
or eax, 0xffffffff
mov dword [ebp - 0x10], ebx
mov word [edi + 0x20], ax
mov edi, dword [ebp + 0x18]
test byte [edi + 0x18], 0x80
je 0x4f2945
test ebx, ebx
jne 0x4f2b77
mov edx, dword [ebp + 0x10]
test edx, edx
jne 0x4f2950
mov ecx, dword [edi + 8]
mov dword [ebp - 0x3c], edx
mov eax, dword [ecx]
mov dword [ebp - 0x44], eax
test eax, eax
jle 0x4f294d
lea edi, [ecx + 0x10]
test byte [edi], 3
mov ebx, dword [edi - 8]
jne 0x4f291d
test ebx, ebx
jne 0x4f28f9
mov ecx, esi
neg ecx
sbb ecx, ecx
jmp 0x4f2919
test esi, esi
je 0x4f291d
mov edx, ebx
sub esi, ebx
movzx ecx, byte [edx]
movzx eax, byte [edx + esi]
cmp ecx, eax
jne 0x4f2930
test ecx, ecx
jne 0x4f2942
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x44]
mov esi, dword [ebp + 0x14]
test ecx, ecx
je 0x4f296c
inc edx
add edi, 0x14
mov dword [ebp - 0x3c], edx
cmp edx, eax
jl 0x4f28e5
mov ebx, dword [ebp - 0x10]
mov edi, dword [ebp + 0x18]
jmp 0x4f294d
movzx eax, byte [eax + 0x58c630]
movzx ecx, byte [ecx + 0x58c630]
sub ecx, eax
jne 0x4f2910
inc edx
jmp 0x4f2901
test ebx, ebx
jne 0x4f2b77
mov edx, dword [ebp + 0x10]
mov edi, dword [edi + 0xc]
inc dword [ebp - 0x38]
mov dword [ebp + 0x18], edi
test edi, edi
je 0x4f2a52
mov edi, dword [ebp + 0x1c]
mov esi, dword [ebp - 8]
jmp 0x4f22a5
mov ecx, dword [ebp + 0x18]
lea eax, [edx + edx*4]
test byte [ecx + 0x18], 1
mov esi, dword [ecx + 8]
mov eax, dword [esi + eax*4 + 4]
jne 0x4f29a2
test byte [eax + 4], 0x10
je 0x4f29a2
push ebx
push str.misuse_of_aliased_aggregate__s
push dword [ebp + 8]
call fcn.0050e160
add esp, 0xc
pop edi
pop esi
mov eax, 2
pop ebx
mov esp, ebp
pop ebp
ret
test dword [eax + 4], 0x8000
je 0x4f29c1
test dword [ecx + 0x18], 0x4000
je 0x4f29b9
cmp ecx, dword [ebp - 0x28]
je 0x4f29c1
push ebx
push str.misuse_of_aliased_window_function__s
jmp 0x4f298b
mov cl, byte [eax]
cmp cl, 0xad
jne 0x4f29cb
mov cl, byte [eax + 2]
cmp cl, 0xae
jne 0x4f29d5
mov eax, dword [eax + 0x14]
jmp 0x4f29e0
cmp cl, 0x88
jne 0x4f2a01
mov eax, dword [eax + 0x14]
mov eax, dword [eax + 0x1c]
cmp dword [eax], 1
je 0x4f2a01
push str.row_value_misused
push dword [ebp + 8]
call fcn.0050e160
add esp, 8
mov eax, 2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x38]
mov edi, dword [ebp + 0x1c]
push eax
push 0x56beb0
push edi
push edx
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.004fd8f0
add esp, 0x18
cmp byte [esi + 0xc8], 2
jb 0x4f2cc9
mov eax, dword [esi + 0x110]
test eax, eax
je 0x4f2cc9
cmp dword [eax], edi
je 0x4f2a47
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x4f2a37
jmp 0x4f2cc9
mov dword [eax], 0
jmp 0x4f2cc9
test edx, edx
jne 0x4f2b8d
mov edi, dword [ebp + 0x1c]
mov ebx, dword [edi + 4]
test bl, 0x40
je 0x4f2ad5
mov eax, dword [ebp - 0x20]
cmp byte [eax + 0xa5], dl
jne 0x4f2aaf
mov ecx, dword [eax + 0x20]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x28]
test dword [eax + 0x18], 0x10000
je 0x4f2aa4
mov eax, ecx
and eax, 0x10000001
cmp eax, 1
jne 0x4f2a9c
mov eax, ecx
and eax, 0x40000000
or eax, edx
jne 0x4f2aaf
and ecx, 0x20000000
jmp 0x4f2aaa
and ecx, 0x40000000
or ecx, 0
je 0x4f2ad5
push esi
push str.double_quoted_string_literal:___w_
push 0x1c
call fcn.004d8420
add esp, 0xc
mov byte [edi], 0x73
mov dword [edi + 0x2c], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test ebx, 0x4000000
jne 0x4f2b82
mov edx, dword [edi + 8]
mov edi, str.true
mov esi, edx
sub edi, edx
lea ecx, [ecx]
movzx ecx, byte [esi]
movzx eax, byte [edi + esi]
cmp ecx, eax
jne 0x4f2b1b
test ecx, ecx
jne 0x4f2b2d
mov ecx, dword [ebp + 0x1c]
mov eax, 0x10000000
or ebx, eax
mov eax, 1
pop edi
pop esi
mov dword [ecx + 4], ebx
mov byte [ecx], 0xa7
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, byte [eax + 0x58c630]
movzx ecx, byte [ecx + 0x58c630]
sub ecx, eax
jne 0x4f2b30
inc esi
jmp 0x4f2af0
mov esi, str.false
sub esi, edx
movzx ecx, byte [edx]
movzx eax, byte [esi + edx]
cmp ecx, eax
jne 0x4f2b62
test ecx, ecx
jne 0x4f2b74
mov ecx, dword [ebp + 0x1c]
mov eax, 0x20000000
or ebx, eax
mov eax, 1
pop edi
pop esi
mov dword [ecx + 4], ebx
mov byte [ecx], 0xa7
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, byte [eax + 0x58c630]
movzx ecx, byte [ecx + 0x58c630]
sub ecx, eax
jne 0x4f2b87
inc edx
jmp 0x4f2b37
cmp ebx, 1
je 0x4f2bf2
jmp 0x4f2b8a
mov ebx, dword [ebp - 0x10]
jmp 0x4f2b8d
mov ebx, dword [ebp - 0x10]
mov edx, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
test ebx, ebx
mov ecx, str.ambiguous_column_name
mov eax, str.no_such_column
cmovne eax, ecx
mov ecx, dword [ebp + 0x14]
push ecx
test esi, esi
je 0x4f2bbc
push edx
push esi
push eax
push str._s:__s._s._s
push dword [ebp + 8]
call fcn.0050e160
add esp, 0x18
jmp 0x4f2be5
test edx, edx
je 0x4f2bd4
push edx
push eax
push str._s:__s._s
push dword [ebp + 8]
call fcn.0050e160
add esp, 0x14
jmp 0x4f2be5
push eax
push str._s:__s
push dword [ebp + 8]
call fcn.0050e160
add esp, 0x10
mov eax, dword [ebp + 8]
mov byte [eax + 0x11], 1
mov eax, dword [ebp - 0x28]
inc dword [eax + 0x14]
mov edi, dword [ebp + 0x1c]
movzx eax, word [edi + 0x20]
test ax, ax
js 0x4f2c7e
cmp dword [ebp - 8], 0
je 0x4f2c7e
mov edx, dword [edi + 0x2c]
movsx esi, ax
test byte [edx + 0x24], 0x60
je 0x4f2c55
mov eax, dword [edx + 4]
lea ecx, [esi + esi*4]
test byte [eax + ecx*4 + 0x10], 0x60
je 0x4f2c55
movzx eax, word [edx + 0x2a]
cmp ax, 0x40
jl 0x4f2c37
or ecx, 0xffffffff
or edx, 0xffffffff
jmp 0x4f2c75
xor ecx, ecx
cwde
xor edx, edx
bts ecx, eax
cmp eax, 0x20
cmovae edx, ecx
xor ecx, edx
cmp eax, 0x40
cmovae edx, ecx
add ecx, 0xffffffff
adc edx, 0xffffffff
jmp 0x4f2c75
cmp esi, 0x40
mov eax, 0x3f
cmovge esi, eax
xor ecx, ecx
xor edx, edx
bts ecx, esi
cmp esi, 0x20
cmovae edx, ecx
xor ecx, edx
cmp esi, 0x40
cmovae edx, ecx
mov eax, dword [ebp - 8]
or dword [eax + 0x38], ecx
or dword [eax + 0x3c], edx
mov eax, dword [edi + 0xc]
mov esi, dword [ebp - 0x20]
test eax, eax
je 0x4f2c92
push eax
push esi
call fcn.00511640
add esp, 8
mov eax, dword [edi + 0x10]
mov dword [edi + 0xc], 0
test eax, eax
je 0x4f2caa
push eax
push esi
call fcn.00511640
add esp, 8
mov eax, dword [ebp - 0x24]
or dword [edi + 4], 0x800000
mov dword [edi + 0x10], 0
mov byte [edi], al
cmp ebx, 1
jne 0x4f2996
mov esi, dword [ebp + 8]
test dword [edi + 4], 0x400000
jne 0x4f2d90
mov eax, dword [esi]
mov ebx, dword [ebp + 0x18]
cmp dword [eax + 0x150], 0
mov ebx, dword [ebx + 4]
je 0x4f2d90
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x4f2d90
mov eax, dword [eax + 0x10]
xor edx, edx
add eax, 0xc
cmp dword [eax], ecx
je 0x4f2d12
lea eax, [eax + 0x10]
inc edx
cmp dword [eax], ecx
jne 0x4f2d02
test edx, edx
js 0x4f2d90
cmp byte [edi], 0x4d
jne 0x4f2d1c
mov esi, dword [esi + 0x78]
jmp 0x4f2d48
mov esi, dword [ebx]
xor eax, eax
test esi, esi
jle 0x4f2d90
mov edi, dword [edi + 0x1c]
lea ecx, [ebx + 0x34]
lea ebx, [ebx]
cmp edi, dword [ecx]
je 0x4f2d3e
inc eax
add ecx, 0x48
cmp eax, esi
jl 0x4f2d30
jmp 0x4f2d90
mov edi, dword [ebp + 0x1c]
lea eax, [eax + eax*8]
mov esi, dword [ebx + eax*8 + 0x18]
test esi, esi
je 0x4f2d90
movsx eax, word [edi + 0x20]
test eax, eax
js 0x4f2d5f
lea ecx, [eax + eax*4]
mov eax, dword [esi + 4]
mov eax, dword [eax + ecx*4]
jmp 0x4f2d79
movzx eax, word [esi + 0x28]
test ax, ax
js 0x4f2d74
cwde
lea ecx, [eax + eax*4]
mov eax, dword [esi + 4]
mov eax, dword [eax + ecx*4]
jmp 0x4f2d79
mov eax, str.ROWID
push edx
push eax
push dword [esi]
push dword [ebp + 8]
call fcn.00504180
add esp, 0x10
cmp eax, 2
jne 0x4f2d90
mov byte [edi], 0x77
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp + 0x18]
inc dword [ecx + 0x10]
cmp ecx, eax
je 0x4f2daa
lea ecx, [ecx]
mov ecx, dword [ecx + 0xc]
inc dword [ecx + 0x10]
cmp ecx, eax
jne 0x4f2da0
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret