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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
push esi
push edi
mov edi, dword [ebp + 0x1c]
mov ecx, 0xa4
mov edx, dword [ebx]
xor esi, esi
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x20], edx
mov dword [ebp - 4], esi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x18], esi
mov dword [edi + 0x1c], 0xffffffff
test ecx, ecx
je 0x4d4995
test byte [eax + 0x18], 6
je 0x4d4956
mov dword [ebp + 0xc], esi
jmp 0x4d4995
mov ebx, dword [edx + 0x14]
xor esi, esi
test ebx, ebx
jle 0x4d4993
mov edi, dword [edx + 0x10]
push ecx
push dword [edi]
call fcn.005076d0
add esp, 8
test eax, eax
je 0x4d497e
mov ecx, dword [ebp + 0xc]
inc esi
add edi, 0x10
cmp esi, ebx
jl 0x4d4962
jmp 0x4d498d
mov ecx, dword [ebp - 0x20]
add esi, esi
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + esi*8 + 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x18]
mov edi, dword [ebp + 0x1c]
xor esi, esi
mov ecx, dword [eax + 4]
mov dword [ebp - 0x3c], ecx
test ecx, ecx
je 0x4d4c54
xor edx, edx
lea eax, [ecx + 8]
mov dword [ebp - 0x14], edx
mov dword [ebp - 8], eax
cmp dword [ecx], edx
jle 0x4d4c31
mov ebx, dword [eax + 0x14]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x1c], ecx
test ebx, ebx
je 0x4d4a40
test dword [ebx + 4], 0x800
je 0x4d4a40
mov ebx, dword [ebx + 0x1c]
xor esi, esi
mov dword [ebp - 0x2c], 0
cmp dword [ebx], esi
jle 0x4d4a33
lea edi, [ebx + 4]
nop
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push dword [ebp + 0x14]
push edi
call fcn.004fb490
add esp, 0x10
test eax, eax
je 0x4d4a17
mov eax, dword [ebp - 8]
inc dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x10], 2
mov word [eax + 0x20], si
mov eax, 1
mov dword [ebp - 0x2c], eax
jmp 0x4d4a1a
mov eax, dword [ebp - 0x2c]
inc esi
add edi, 0x14
cmp esi, dword [ebx]
jl 0x4d49e0
mov edx, dword [ebp - 0x14]
test eax, eax
mov eax, dword [ebp - 8]
jne 0x4d4c16
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x4d4c16
jmp 0x4d4a43
mov esi, dword [ebp + 0x10]
cmp dword [ebp + 0xc], 0
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x34], ebx
je 0x4d4a5b
mov ebx, dword [ebp - 0x18]
cmp dword [ecx + 0x48], ebx
jne 0x4d4c16
test esi, esi
je 0x4d4acc
mov ebx, dword [eax + 0xc]
mov edx, ebx
test ebx, ebx
jne 0x4d4a6a
mov edx, dword [ecx]
mov edi, esi
sub edi, edx
nop
movzx eax, byte [edx]
movzx esi, byte [edx + edi]
cmp eax, esi
jne 0x4d4aad
test eax, eax
jne 0x4d4ac3
mov eax, dword [ebp + 8]
cmp byte [eax + 0xc8], 2
jb 0x4d4acc
test ebx, ebx
je 0x4d4acc
mov eax, dword [eax + 0x110]
test eax, eax
je 0x4d4acc
mov ecx, dword [ebp + 0x1c]
add ecx, 0x2c
nop
cmp dword [eax], ecx
je 0x4d4ac6
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x4d4aa0
jmp 0x4d4acc
movzx ecx, byte [eax + 0x586568]
movzx eax, byte [esi + 0x586568]
sub ecx, eax
jne 0x4d4c10
inc edx
jmp 0x4d4a70
mov dword [eax], 0
mov ecx, dword [ebp - 0x1c]
inc dword [ebp - 0x10]
cmp dword [ebp - 0x34], 0
mov ebx, dword [ebp - 8]
mov esi, ebx
cmovne esi, dword [ebp - 4]
xor edi, edi
mov eax, dword [ecx + 4]
movsx ecx, word [ecx + 0x2a]
mov dword [ebp - 4], esi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x34], eax
test ecx, ecx
jle 0x4d4b8e
nop dword [eax]
mov esi, dword [ebp + 0x14]
mov edx, dword [eax]
sub esi, edx
movzx ecx, byte [edx]
movzx eax, byte [edx + esi]
cmp ecx, eax
jne 0x4d4b99
test ecx, ecx
jne 0x4d4bab
mov edx, dword [ebp - 0xc]
cmp edx, 1
jne 0x4d4bd8
test byte [ebx + 0x24], 4
jne 0x4d4b6c
mov eax, dword [ebx + 0x34]
test eax, eax
je 0x4d4bd8
mov ecx, dword [eax + 4]
xor ebx, ebx
mov dword [ebp - 0x38], ecx
test ecx, ecx
jle 0x4d4bd5
mov edi, dword [eax]
nop dword [eax]
mov esi, dword [ebp + 0x14]
mov edx, dword [edi]
sub esi, edx
movzx eax, byte [edx]
movzx ecx, byte [esi + edx]
cmp eax, ecx
jne 0x4d4bb1
test eax, eax
jne 0x4d4bc3
mov edi, dword [ebp - 0x2c]
mov ebx, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
inc edi
mov eax, dword [ebp - 0x34]
add eax, 0x14
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x34], eax
movsx ecx, word [edx + 0x2a]
cmp edi, ecx
jl 0x4d4b00
mov esi, dword [ebp - 4]
mov dword [ebp - 4], esi
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
jmp 0x4d4c19
movzx eax, byte [eax + 0x586568]
movzx ecx, byte [ecx + 0x586568]
sub ecx, eax
jne 0x4d4b6c
inc edx
jmp 0x4d4b07
movzx ecx, byte [ecx + 0x586568]
movzx eax, byte [eax + 0x586568]
sub eax, ecx
jne 0x4d4bc6
inc edx
jmp 0x4d4b57
inc ebx
add edi, 8
cmp ebx, dword [ebp - 0x38]
jl 0x4d4b50
mov edi, dword [ebp - 0x2c]
mov edx, dword [ebp - 0xc]
mov ebx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
inc edx
mov esi, ebx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], esi
movsx eax, word [eax + 0x28]
cmp edi, eax
jne 0x4d4bfe
mov edi, dword [ebp + 0x1c]
or eax, 0xffffffff
mov edx, dword [ebp - 0x14]
mov word [edi + 0x20], ax
mov eax, dword [ebp - 8]
jmp 0x4d4c1c
mov edx, dword [ebp - 0x14]
movzx eax, di
mov edi, dword [ebp + 0x1c]
mov word [edi + 0x20], ax
mov eax, dword [ebp - 8]
jmp 0x4d4c1c
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 4]
mov edi, dword [ebp + 0x1c]
mov ecx, dword [ebp - 0x3c]
inc edx
add eax, 0x48
mov dword [ebp - 0x14], edx
mov dword [ebp - 8], eax
cmp edx, dword [ecx]
jl 0x4d49b6
test esi, esi
je 0x4d4c54
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 0x4d4c4e
or dword [edi + 4], 0x100000
mov eax, dword [eax + 0x48]
mov dword [ebp - 0x18], eax
cmp dword [ebp + 0xc], 0
mov esi, dword [ebp - 0x10]
jne 0x4d4f12
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4d4f12
test esi, esi
jne 0x4d4f12
mov ecx, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x14], ebx
cmp dword [ecx + 0x78], ebx
je 0x4d4d1c
mov bl, byte [ecx + 0x90]
cmp bl, 0x7e
je 0x4d4cd9
mov edx, 0x58c8b0
mov esi, eax
sub esi, edx
nop dword [eax]
movzx ecx, byte [edx]
movzx eax, byte [esi + edx]
cmp ecx, eax
jne 0x4d4cc1
test ecx, ecx
jne 0x4d4cd3
mov ebx, dword [ebp + 8]
mov dword [edi + 0x1c], 1
mov ebx, dword [ebx + 0x78]
mov dword [ebp - 0x14], ebx
jmp 0x4d4d1c
movzx eax, byte [eax + 0x586568]
movzx ecx, byte [ecx + 0x586568]
sub ecx, eax
jne 0x4d4cd6
inc edx
jmp 0x4d4ca0
mov eax, dword [ebp + 0x10]
cmp bl, 0x7d
je 0x4d4d19
mov edx, 0x58c8b4
mov esi, eax
sub esi, edx
movzx ecx, byte [edx]
movzx eax, byte [esi + edx]
cmp ecx, eax
jne 0x4d4d04
test ecx, ecx
jne 0x4d4d16
mov ebx, dword [ebp + 8]
mov dword [edi + 0x1c], ecx
mov ebx, dword [ebx + 0x78]
mov dword [ebp - 0x14], ebx
jmp 0x4d4d1c
movzx eax, byte [eax + 0x586568]
movzx ecx, byte [ecx + 0x586568]
sub ecx, eax
jne 0x4d4d19
inc edx
jmp 0x4d4ce7
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebp + 0x18]
test dword [eax + 0x18], 0x200
je 0x4d4d66
mov edi, dword [eax + 8]
test edi, edi
je 0x4d4d66
mov esi, dword [ebp + 0x10]
mov edx, str.excluded
sub esi, edx
nop dword [eax]
movzx ecx, byte [edx]
movzx eax, byte [esi + edx]
cmp ecx, eax
jne 0x4d4dbc
test ecx, ecx
jne 0x4d4dce
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 0x4d4f0f
mov eax, dword [ebx + 0x48]
mov esi, 1
movsx ecx, word [ebx + 0x2a]
xor edi, edi
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x1c], ecx
test ecx, ecx
jle 0x4d4e00
nop
mov ebx, dword [ebp + 0x14]
mov edx, dword [eax]
sub ebx, edx
movzx eax, byte [edx]
movzx esi, byte [ebx + edx]
cmp eax, esi
jne 0x4d4dd4
test eax, eax
jne 0x4d4de6
mov ebx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
movsx eax, word [ebx + 0x28]
cmp edi, eax
mov eax, 0xffffffff
cmove edi, eax
jmp 0x4d4dfd
movzx eax, byte [eax + 0x586568]
movzx ecx, byte [ecx + 0x586568]
sub ecx, eax
jne 0x4d4d66
inc edx
jmp 0x4d4d40
movzx ecx, byte [eax + 0x586568]
movzx eax, byte [esi + 0x586568]
sub ecx, eax
jne 0x4d4de9
inc edx
jmp 0x4d4d97
mov eax, dword [ebp - 0x34]
inc edi
mov ecx, dword [ebp - 0x1c]
add eax, 0x14
mov dword [ebp - 0x34], eax
cmp edi, ecx
jl 0x4d4d90
mov ebx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x10]
cmp edi, ecx
jl 0x4d4e2d
push dword [ebp + 0x14]
call fcn.004f9b00
mov ecx, dword [ebp - 0x1c]
add esp, 4
test eax, eax
je 0x4d4e25
test dword [ebx + 0x24], 0x200
mov eax, 0xffffffff
cmove edi, eax
cmp edi, ecx
jge 0x4d4f12
mov ecx, dword [ebp + 0x1c]
inc dword [ebp - 0xc]
mov eax, dword [ecx + 0x1c]
cmp eax, 2
jne 0x4d4e7b
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x18]
cmp byte [eax + 0xc8], 2
jb 0x4d4e5d
mov word [ecx + 0x20], di
mov dword [ecx + 0x2c], ebx
mov dword [ebp - 0x24], 0xa4
jmp 0x4d4f15
mov eax, dword [edx + 8]
mov dword [ebp - 0x24], 0xad
mov eax, dword [eax + 0x18]
add eax, edi
or dword [ecx + 4], 0x400000
mov dword [ecx + 0x1c], eax
jmp 0x4d4f15
test edi, edi
jns 0x4d4e96
mov byte [ecx + 1], 0x44
mov dword [ecx + 0x2c], ebx
mov word [ecx + 0x20], di
mov dword [ebp - 0x24], 0x4d
jmp 0x4d4f12
test eax, eax
jne 0x4d4ee0
cmp edi, 0x20
jl 0x4d4ebb
mov edx, dword [ebp + 8]
or eax, 0xffffffff
mov dword [ebp - 0x24], 0x4d
or dword [edx + 0x88], eax
mov dword [ecx + 0x2c], ebx
mov word [ecx + 0x20], di
jmp 0x4d4f12
mov edx, dword [ebp + 8]
mov ecx, edi
mov eax, 1
mov dword [ebp - 0x24], 0x4d
shl eax, cl
mov ecx, dword [ebp + 0x1c]
or dword [edx + 0x88], eax
mov dword [ecx + 0x2c], ebx
mov word [ecx + 0x20], di
jmp 0x4d4f12
cmp edi, 0x20
jl 0x4d4eea
or eax, 0xffffffff
jmp 0x4d4ef6
mov ecx, edi
mov eax, 1
shl eax, cl
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x24], 0x4d
or dword [edx + 0x8c], eax
mov dword [ecx + 0x2c], ebx
mov word [ecx + 0x20], di
jmp 0x4d4f12
mov esi, dword [ebp - 0x10]
mov edx, dword [ebp + 0x18]
mov ebx, dword [ebp - 0xc]
test ebx, ebx
jne 0x4d4f62
cmp esi, 1
mov esi, dword [ebp + 0x14]
jne 0x4d4f65
mov edi, dword [ebp - 4]
test edi, edi
je 0x4d4f65
test byte [edx + 0x18], 0x28
jne 0x4d4f65
push esi
call fcn.004f9b00
add esp, 4
test eax, eax
je 0x4d4f65
mov eax, dword [edi + 0x10]
test dword [eax + 0x24], 0x200
jne 0x4d4f65
mov eax, dword [ebp + 0x1c]
mov ebx, 1
or ecx, 0xffffffff
mov dword [ebp - 0xc], ebx
mov word [eax + 0x20], cx
mov byte [eax + 1], 0x44
jmp 0x4d4f65
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 0x18]
test byte [edi + 0x18], 0x80
je 0x4d4ff7
test ebx, ebx
jne 0x4d5230
mov edx, dword [ebp + 0x10]
test edx, edx
jne 0x4d5002
mov ecx, dword [edi + 8]
mov dword [ebp - 0x34], edx
mov eax, dword [ecx]
mov dword [ebp - 0x3c], eax
test eax, eax
jle 0x4d4fff
lea edi, [ecx + 0x10]
test byte [edi], 3
mov ebx, dword [edi - 8]
jne 0x4d4fcf
test ebx, ebx
jne 0x4d4fab
mov ecx, esi
neg ecx
sbb ecx, ecx
jmp 0x4d4fcb
test esi, esi
je 0x4d4fcf
mov edx, ebx
sub esi, ebx
movzx ecx, byte [edx]
movzx eax, byte [esi + edx]
cmp ecx, eax
jne 0x4d4fe2
test ecx, ecx
jne 0x4d4ff4
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x3c]
mov esi, dword [ebp + 0x14]
test ecx, ecx
je 0x4d5021
inc edx
add edi, 0x14
mov dword [ebp - 0x34], edx
cmp edx, eax
jl 0x4d4f97
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp + 0x18]
jmp 0x4d4fff
movzx eax, byte [eax + 0x586568]
movzx ecx, byte [ecx + 0x586568]
sub ecx, eax
jne 0x4d4fc2
inc edx
jmp 0x4d4fb3
test ebx, ebx
jne 0x4d5230
mov edx, dword [ebp + 0x10]
mov edi, dword [edi + 0xc]
inc dword [ebp - 0x30]
mov dword [ebp + 0x18], edi
test edi, edi
je 0x4d510b
mov edi, dword [ebp + 0x1c]
mov esi, dword [ebp - 4]
mov eax, dword [ebp + 0x18]
jmp 0x4d4995
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 0x4d5057
test byte [eax + 4], 0x10
je 0x4d5057
push ebx
push str.misuse_of_aliased_aggregate__s
push dword [ebp + 8]
call fcn.004ed670
add esp, 0xc
pop edi
pop esi
mov eax, 2
pop ebx
mov esp, ebp
pop ebp
ret
test dword [eax + 4], 0x8000
je 0x4d5076
test dword [ecx + 0x18], 0x4000
je 0x4d506e
cmp ecx, dword [ebp - 0x28]
je 0x4d5076
push ebx
push str.misuse_of_aliased_window_function__s
jmp 0x4d5040
mov cl, byte [eax]
cmp cl, 0xad
jne 0x4d5080
mov cl, byte [eax + 2]
cmp cl, 0xae
jne 0x4d508a
mov eax, dword [eax + 0x14]
jmp 0x4d5095
cmp cl, 0x88
jne 0x4d50b6
mov eax, dword [eax + 0x14]
mov eax, dword [eax + 0x1c]
cmp dword [eax], 1
je 0x4d50b6
push str.row_value_misused
push dword [ebp + 8]
call fcn.004ed670
add esp, 8
mov eax, 2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x30]
mov edi, dword [ebp + 0x1c]
push eax
push 0x599a67
push edi
push edx
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.004deb00
add esp, 0x18
cmp byte [esi + 0xc8], 2
jb 0x4d5390
mov eax, dword [esi + 0x110]
test eax, eax
je 0x4d5390
nop dword [eax]
cmp dword [eax], edi
je 0x4d5100
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x4d50f0
jmp 0x4d5390
mov dword [eax], 0
jmp 0x4d5390
test edx, edx
jne 0x4d5242
mov edi, dword [ebp + 0x1c]
mov ebx, dword [edi + 4]
test bl, 0x40
je 0x4d518e
mov eax, dword [ebp - 0x20]
cmp byte [eax + 0xa5], dl
jne 0x4d5168
mov ecx, dword [eax + 0x20]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x28]
test dword [eax + 0x18], 0x10000
je 0x4d515d
mov eax, ecx
and eax, 0x10000001
cmp eax, 1
jne 0x4d5155
mov eax, ecx
and eax, 0x40000000
or eax, edx
jne 0x4d5168
and ecx, 0x20000000
jmp 0x4d5163
and ecx, 0x40000000
or ecx, 0
je 0x4d518e
push esi
push str.double_quoted_string_literal:___w_
push 0x1c
call fcn.004b9f50
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 0x4d5237
mov edx, dword [edi + 8]
mov edi, 0x57f4cc
mov esi, edx
sub edi, edx
movzx ecx, byte [esi]
movzx eax, byte [edi + esi]
cmp ecx, eax
jne 0x4d51d1
test ecx, ecx
jne 0x4d51e3
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 + 0x586568]
movzx ecx, byte [ecx + 0x586568]
sub ecx, eax
jne 0x4d51e6
inc esi
jmp 0x4d51a6
mov esi, 0x57f4c4
sub esi, edx
nop dword [eax]
movzx ecx, byte [edx]
movzx eax, byte [esi + edx]
cmp ecx, eax
jne 0x4d521b
test ecx, ecx
jne 0x4d522d
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 + 0x586568]
movzx ecx, byte [ecx + 0x586568]
sub ecx, eax
jne 0x4d523c
inc edx
jmp 0x4d51f0
cmp ebx, 1
je 0x4d52a7
jmp 0x4d523f
mov ebx, dword [ebp - 0xc]
jmp 0x4d5242
mov ebx, dword [ebp - 0xc]
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 0x4d5271
push edx
push esi
push eax
push str._s:__s._s._s
push dword [ebp + 8]
call fcn.004ed670
add esp, 0x18
jmp 0x4d529a
test edx, edx
je 0x4d5289
push edx
push eax
push str._s:__s._s
push dword [ebp + 8]
call fcn.004ed670
add esp, 0x14
jmp 0x4d529a
push eax
push str._s:__s
push dword [ebp + 8]
call fcn.004ed670
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 0x4d5345
cmp dword [ebp - 4], 0
je 0x4d5345
mov esi, dword [edi + 0x2c]
movsx edx, ax
test byte [esi + 0x24], 0x60
je 0x4d531c
mov eax, dword [esi + 4]
lea ecx, [edx + edx*4]
test byte [eax + ecx*4 + 0x10], 0x60
je 0x4d531c
movzx eax, word [esi + 0x2a]
cmp ax, 0x40
jl 0x4d52f5
mov eax, dword [ebp - 4]
or ecx, 0xffffffff
or edx, 0xffffffff
mov dword [eax + 0x38], ecx
mov dword [eax + 0x3c], edx
jmp 0x4d5345
xor ecx, ecx
cwde
bts ecx, eax
xor edx, edx
cmp eax, 0x20
cmovae edx, ecx
xor ecx, edx
cmp eax, 0x40
mov eax, dword [ebp - 4]
cmovae edx, ecx
add ecx, 0xffffffff
adc edx, 0xffffffff
mov dword [eax + 0x38], ecx
mov dword [eax + 0x3c], edx
jmp 0x4d5345
cmp edx, 0x40
mov eax, 0x3f
cmovge edx, eax
xor eax, eax
bts eax, edx
xor ecx, ecx
cmp edx, 0x20
cmovae ecx, eax
xor eax, ecx
cmp edx, 0x40
mov edx, dword [ebp - 4]
cmovae ecx, eax
or dword [edx + 0x38], eax
or dword [edx + 0x3c], ecx
mov eax, dword [edi + 0xc]
mov esi, dword [ebp - 0x20]
test eax, eax
je 0x4d5359
push eax
push esi
call fcn.004f0920
add esp, 8
mov eax, dword [edi + 0x10]
mov dword [edi + 0xc], 0
test eax, eax
je 0x4d5371
push eax
push esi
call fcn.004f0920
add esp, 8
mov ecx, dword [ebp - 0x24]
or dword [edi + 4], 0x800000
mov dword [edi + 0x10], 0
mov byte [edi], cl
cmp ebx, 1
jne 0x4d504b
mov esi, dword [ebp + 8]
test dword [edi + 4], 0x400000
jne 0x4d5458
mov eax, dword [esi]
mov ebx, dword [ebp + 0x18]
cmp dword [eax + 0x150], 0
mov ebx, dword [ebx + 4]
je 0x4d5458
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x4d5458
mov eax, dword [eax + 0x10]
xor edx, edx
add eax, 0xc
cmp dword [eax], ecx
je 0x4d53e0
nop dword [eax]
lea eax, [eax + 0x10]
inc edx
cmp dword [eax], ecx
jne 0x4d53d0
test edx, edx
js 0x4d5458
cmp byte [edi], 0x4d
jne 0x4d53ea
mov esi, dword [esi + 0x78]
jmp 0x4d5410
mov esi, dword [ebx]
xor eax, eax
test esi, esi
jle 0x4d5458
mov edi, dword [edi + 0x1c]
lea ecx, [ebx + 0x34]
cmp edi, dword [ecx]
je 0x4d5406
inc eax
add ecx, 0x48
cmp eax, esi
jl 0x4d53f8
jmp 0x4d5458
mov edi, dword [ebp + 0x1c]
lea eax, [eax + eax*8]
mov esi, dword [ebx + eax*8 + 0x18]
test esi, esi
je 0x4d5458
movsx eax, word [edi + 0x20]
test eax, eax
js 0x4d5427
lea ecx, [eax + eax*4]
mov eax, dword [esi + 4]
mov eax, dword [eax + ecx*4]
jmp 0x4d5441
movzx eax, word [esi + 0x28]
test ax, ax
js 0x4d543c
cwde
lea ecx, [eax + eax*4]
mov eax, dword [esi + 4]
mov eax, dword [eax + ecx*4]
jmp 0x4d5441
mov eax, str.ROWID
push edx
push eax
push dword [esi]
push dword [ebp + 8]
call fcn.004e4760
add esp, 0x10
cmp eax, 2
jne 0x4d5458
mov byte [edi], 0x77
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp + 0x18]
inc dword [ecx + 0x10]
cmp ecx, eax
je 0x4d546f
mov ecx, dword [ecx + 0xc]
inc dword [ecx + 0x10]
cmp ecx, eax
jne 0x4d5465
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret